From ba485cd1bd26e2b803bb2301d8d2eb46b5382729 Mon Sep 17 00:00:00 2001 From: luolongfei Date: Sat, 25 Feb 2023 15:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d4f9089..6c398c7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,18 +1,28 @@ -version: '3.8' +version: '3.9' services: redis: image: redis:7-alpine # Set a size limit. See link below on how to customise. # https://redis.io/docs/manual/eviction/ - # command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru + command: redis-server --maxmemory 200mb --maxmemory-policy allkeys-lru app: - image: cupcakearmy/cryptgeon:latest + build: + context: . + dockerfile: Dockerfile depends_on: - redis environment: # Size limit for a single note. - SIZE_LIMIT: 4 MiB + SIZE_LIMIT: 28 MiB + MAX_VIEWS: 20 + MAX_EXPIRATION: 360 + ALLOW_ADVANCED: true + VERBOSITY: error + THEME_IMAGE: "https://images.llfapp.com/copy_logo.jpg" + THEME_TEXT: "飞鸽传书,一键传输完全加密的密信或文件,阅后即焚。" + THEME_PAGE_TITLE: "飞鸽传书 | 加密文本传输,阅后即焚" + THEME_FAVICON: "https://images.llfapp.com/paper.png" ports: - - 80:8000 + - 2000:8000