File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,19 @@ services:
27
27
- path: ./override.env
28
28
required: false
29
29
environment:
30
+ # IMPORTANT NOTE
31
+ #
32
+ # Only env vars needing tweaked specifically for the container runtime
33
+ # environment should be defined here.
34
+ #
35
+ # Add general local configuration things to local.env
36
+
37
+ # Settings for running make inside the container
38
+ - PY_RUN_APPROACH=local
30
39
- PYTHONPATH=/app/
40
+
41
+ # Point to other containers via the internal network
42
+ - DB_HOST={{ app_name }}-db
31
43
ports:
32
44
- {{ app_local_port }}:{{ app_local_port }}
33
45
volumes:
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ API_AUTH_TOKEN=LOCAL_AUTH_12345678
44
44
# DB Environment Variables
45
45
############################
46
46
47
- # Set DB_HOST to localhost if accessing a non-dockerized database
48
- DB_HOST={{ app_name }}-db
47
+ # Set default for DB_HOST which supports running natively. DB_HOST is overridden
48
+ # in docker-compose.yml when running via the container.
49
+ DB_HOST=localhost
49
50
DB_NAME=app
50
51
DB_USER=app
51
52
DB_SCHEMA=public
You can’t perform that action at this time.
0 commit comments