refactor(docker): 添加.env文件到docker-compose配置中 (#71)
为了统一环境变量管理,将.env文件添加到docker-compose.yml和docker-compose_gpu.yml配置中,适配修改端口后的数据读取。
This commit is contained in:
parent
6952f021fa
commit
f4c4a68d7a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue