自定义一些配置

This commit is contained in:
luolongfei 2023-02-25 15:07:41 +08:00 committed by GitHub
parent 89b498e8c8
commit ba485cd1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 5 deletions

View File

@ -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