Add traefik nginx lables for static file serving.
This commit is contained in:
parent
71ab6bc550
commit
44f3f01451
@ -3,6 +3,7 @@ version: '3.5'
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: ./app
|
build: ./app
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./app/blog:/usr/src/app/blog
|
- ./app/blog:/usr/src/app/blog
|
||||||
- ./app/bundesdata_app:/usr/src/app/bundesdata_app
|
- ./app/bundesdata_app:/usr/src/app/bundesdata_app
|
||||||
@ -19,8 +20,10 @@ services:
|
|||||||
command: >
|
command: >
|
||||||
bash -c "./wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
|
bash -c "./wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
|
||||||
&& gunicorn --bind 0.0.0.0:8000 --workers=4 bundesdata_app.wsgi:application"
|
&& gunicorn --bind 0.0.0.0:8000 --workers=4 bundesdata_app.wsgi:application"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
env_file: live.env
|
env_file: live.env
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
@ -30,8 +33,10 @@ services:
|
|||||||
image: postgres:11.2
|
image: postgres:11.2
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres_data:/var/lib/postgresql/data/
|
- ./postgres_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build: ./nginx
|
build: ./nginx
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./static_volume:/usr/src/app/staticfiles
|
- ./static_volume:/usr/src/app/staticfiles
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user