Use more enviroment variables

This commit is contained in:
Sonny Bakker 2023-06-27 09:06:24 +02:00
parent b8a9d885f5
commit 3ebba6df47
6 changed files with 25 additions and 33 deletions

View file

@ -1,4 +1,4 @@
version: '3.6'
version: "3.6"
volumes:
static-files:
@ -14,9 +14,11 @@ services:
django:
build:
target: development
command: python /app/src/manage.py runserver 0.0.0.0:8000
command: python /app/src/manage.py runserver 0.0.0.0:${DJANGO_PORT:-8000}
environment:
- DJANGO_SETTINGS_MODULE=newsreader.conf.docker
ports:
- "${DJANGO_PORT:-8000}:${DJANGO_PORT:-8000}"
volumes:
- ./src:/app/src
- static-files:/app/src/newsreader/static