chore: update .env.example for Redis configuration and add docker-compose file for app, worker, and Redis services

This commit is contained in:
keven1024
2025-08-30 18:26:35 +08:00
parent 3d173d0321
commit c1ec2aee5b
2 changed files with 25 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ DOWNLOAD_SECRET="your-secret-token"
PASSWORD_SALT="your-passwall-salt" # 设置密码时会把密码加盐
UPLOAD_PATH="/upload" # 上传路径
REDIS_URL="redis://127.0.0.1:6379/0" # redis 地址
REDIS_URL="redis://redis:6379/0" # redis 地址
NODE_ENV="production" # 指定系统环境 production 或者 dev
MAX_LOCALSTORAGE_SIZE="100GB" # 指定实例最大上传容量支持填写人类可读的值比如1TB500GB等

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
services:
app:
image: fudaoyuanicu/015-app:latest
container_name: 015-app
volumes:
- ./uploads:/uploads
ports:
- "8080:80"
env_file: '.env'
depends_on:
- redis
worker:
image: fudaoyuanicu/015-worker:latest
container_name: worker
env_file: '.env'
volumes:
- ./uploads:/uploads
depends_on:
- app
- redis
redis:
image: redis:7
container_name: redis