mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
chore: update .env.example for Redis configuration and add docker-compose file for app, worker, and Redis services
This commit is contained in:
@@ -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" # 指定实例最大上传容量,支持填写人类可读的值,比如1TB,500GB等
|
||||
|
||||
|
||||
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user