Use more enviroment variables
This commit is contained in:
parent
b8a9d885f5
commit
3ebba6df47
6 changed files with 25 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue