docker部署

This commit is contained in:
2026-04-18 17:41:47 +08:00
parent 2a67f56512
commit 5c5d44f7a0
3 changed files with 336 additions and 59 deletions

View File

@@ -0,0 +1,15 @@
services:
nas-uploader:
build: .
container_name: nas-uploader
restart: always
ports:
- "5001:5001"
volumes:
- ${NAS_DATA_PATH:-/volume1/photo/训练营图片}:/app/data
environment:
- NAS_DATA_PATH=/app/data
- PORT=5001
- ALLOWED_EXTENSIONS=jpg,jpeg,png,gif,webp
- MAX_FILES_COUNT=100
- MAX_FILE_SIZE_MB=20