refactor(docker): 添加.env文件到docker-compose配置中 (#71)

为了统一环境变量管理,将.env文件添加到docker-compose.yml和docker-compose_gpu.yml配置中,适配修改端口后的数据读取。
This commit is contained in:
zstar 2025-05-03 08:55:13 +08:00 committed by GitHub
parent 6952f021fa
commit f4c4a68d7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,7 @@ services:
- "8888:80"
depends_on:
- management-backend
env_file: .env
environment:
- API_BASE_URL=/api
networks:
@ -59,6 +60,7 @@ services:
condition: service_healthy
es01:
condition: service_healthy
env_file: .env
environment:
- FLASK_ENV=development
- CORS_ALLOWED_ORIGINS=http://management-frontend

View File

@ -38,6 +38,7 @@ services:
- "8888:80"
depends_on:
- management-backend
env_file: .env
environment:
- API_BASE_URL=/api
networks:
@ -59,6 +60,7 @@ services:
condition: service_healthy
es01:
condition: service_healthy
env_file: .env
environment:
- FLASK_ENV=development
- CORS_ALLOWED_ORIGINS=http://management-frontend