不知名提交

This commit is contained in:
2025-12-13 20:53:50 +08:00
parent c147502b4d
commit 1221d6faf1
120 changed files with 11005 additions and 1092 deletions

36
docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
version: '3.8'
services:
infogenie:
build:
context: .
dockerfile: Dockerfile
container_name: infogenie
restart: always
ports:
- "2323:2323"
volumes:
# 持久化数据映射
- /shumengya/docker/storage/infogenie/logs:/app/data/logs
- /shumengya/docker/storage/infogenie/data:/app/data
environment:
# 从 .env 文件读取环境变量
- MONGO_URI=${MONGO_URI}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- SECRET_KEY=${SECRET_KEY}
- FLASK_ENV=production
env_file:
- ./InfoGenie-backend/.env
networks:
- infogenie-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2323/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
infogenie-network:
driver: bridge