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"
|
- "8888:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- management-backend
|
- management-backend
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- API_BASE_URL=/api
|
- API_BASE_URL=/api
|
||||||
networks:
|
networks:
|
||||||
|
@ -59,6 +60,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
es01:
|
es01:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- FLASK_ENV=development
|
||||||
- CORS_ALLOWED_ORIGINS=http://management-frontend
|
- CORS_ALLOWED_ORIGINS=http://management-frontend
|
||||||
|
|
|
@ -38,6 +38,7 @@ services:
|
||||||
- "8888:80"
|
- "8888:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- management-backend
|
- management-backend
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- API_BASE_URL=/api
|
- API_BASE_URL=/api
|
||||||
networks:
|
networks:
|
||||||
|
@ -59,6 +60,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
es01:
|
es01:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- FLASK_ENV=development
|
||||||
- CORS_ALLOWED_ORIGINS=http://management-frontend
|
- CORS_ALLOWED_ORIGINS=http://management-frontend
|
||||||
|
|
Loading…
Reference in New Issue