Skip to content

Commit 822c1ff

Browse files
authored
Updated docker compose web app to use env_file for environment variables. (#547)
1 parent 7fb9a37 commit 822c1ff

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docker-compose.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@ services:
1111

1212
web:
1313
build: .
14-
environment:
15-
- REDISCLOUD_URL=${REDISCLOUD_URL}
16-
- SECRET_KEY=${SECRET_KEY}
17-
- DEBUG=${DEBUG}
18-
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
19-
- DATABASE_URL=${DATABASE_URL}
20-
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
21-
- SEARCHBOX_SSL_URL=${SEARCHBOX_SSL_URL}
22-
- SESSION_COOKIE_SECURE=${SESSION_COOKIE_SECURE}
14+
env_file:
15+
- .env
2316
command: gunicorn djangosnippets.wsgi:application -b 0.0.0.0:8000 --log-level debug -k gevent -w 2
2417
volumes:
2518
- .:/code

0 commit comments

Comments
 (0)