Skip to content

Commit 481330e

Browse files
committed
[FEAT] Make sure that in prod/dev the correct env variables are set independent of the .env configuration
1 parent 939ca26 commit 481330e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docker-compose.dev.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ services:
1010
api:
1111
ports:
1212
- '5033:5000'
13+
environment:
14+
- USE_DEV_SERVER=True
15+
- DJANGO_SETTINGS_MODULE=svip_server.settings.development
1316
db:
1417
ports:
1518
- '30432:5432' # dev access port

docker-compose.prod.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ services:
1717
- .env
1818
ui:
1919
environment:
20-
- VUE_APP_API_URL=/api/v1
20+
- VUE_APP_API_URL=/api/v1
21+
api:
22+
environment:
23+
- USE_DEV_SERVER=
24+
- DJANGO_SETTINGS_MODULE=svip_server.settings.production

0 commit comments

Comments
 (0)