This commit is contained in:
beabigegg
2025-08-28 08:59:46 +08:00
parent b9557250a4
commit 4f7f46b07a
42 changed files with 4992 additions and 494 deletions

View File

@@ -0,0 +1,47 @@
# Docker Compose Override 檔案
# 用於開發環境的特殊設定
version: '3.8'
services:
app:
# 開發環境設定
environment:
FLASK_ENV: development
FLASK_DEBUG: "true"
# 開發時啟用代碼熱重載
volumes:
- .:/app
- /app/__pycache__
# 開發用命令
command: >
sh -c "
echo 'Starting development server...' &&
python init_db.py --auto-yes &&
python app.py
"
# 開發時不需要健康檢查
healthcheck:
disable: true
mysql:
# 開發環境可以使用不同的密碼
environment:
MYSQL_ROOT_PASSWORD: dev123
MYSQL_PASSWORD: dev123
# 開發時暴露 MySQL 端口以便外部連接
ports:
- "3307:3306"
onlyoffice:
# 開發時可以禁用 JWT 以便測試
environment:
JWT_ENABLED: "false"
# 開發時暴露不同端口避免衝突
ports:
- "8081:80"