chore: remove example environment file and update docker-compose for config file integration

(cherry picked from commit ea0065b415)
This commit is contained in:
keven
2025-10-28 08:20:41 +08:00
parent 99538c6fdb
commit d2478dd23b
2 changed files with 22 additions and 39 deletions

View File

@@ -1,17 +0,0 @@
# 你的下载secret每一次下载次数减1的时候都会根据这里的secret生成一个下载jwt token 有效期一小时使用该下载token有效期内可以多线程下载该文件而不会被多次扣除次数
DOWNLOAD_SECRET="your-secret-token"
PASSWORD_SALT="your-passwall-salt" # 设置密码时会把密码加盐
UPLOAD_PATH="/upload" # 上传路径
REDIS_URL="redis://redis:6379/0" # redis 地址
NODE_ENV="production" # 指定系统环境 production 或者 dev
MAX_LOCALSTORAGE_SIZE="100GB" # 指定实例最大上传容量支持填写人类可读的值比如1TB500GB等
# (可选): 系统状态页面显示站长信息的 头像会使用email的gravatar头像点击是触发mailto:your-email不填写不显示站长信息
ADMIN_EMAIL="keven@fudaoyuan.icu"
ADMIN_NAME="keven"
# 下面的env是前端渲染用到的SITE_URL必填对应你的公网域名
SITE_TITLE="015"
SITE_DESC="015 是一个开源的临时内容分享平台项目, 支持文件和文本上传, 下载, 分享"
SITE_URL="http://localhost:5000"

View File

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