mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 11:39:32 +08:00
优化Docker配置:支持通过环境变量自定义宿主机与容器端口映射
This commit is contained in:
@@ -8,12 +8,12 @@ services:
|
||||
container_name: bingpaper
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "${HOST_PORT:-8080}:${BINGPAPER_SERVER_PORT:-8080}"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- BINGPAPER_SERVER_PORT=8080
|
||||
- BINGPAPER_SERVER_PORT=${BINGPAPER_SERVER_PORT:-8080}
|
||||
- BINGPAPER_LOG_LEVEL=info
|
||||
- BINGPAPER_API_MODE=local
|
||||
- BINGPAPER_CRON_ENABLED=true
|
||||
|
||||
Reference in New Issue
Block a user