docker-compose updates
This commit is contained in:
parent
807c49ff19
commit
b2857312c5
@ -1,15 +1,14 @@
|
|||||||
version: '3.5'
|
version: '3.5'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
reverse-proxy:
|
default:
|
||||||
external:
|
external:
|
||||||
name: reverse-proxy
|
name: traefik_default
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- reverse-proxy
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.bundesdata.rule=Host(`bundesdata.${DOMAIN}`)"
|
- "traefik.http.routers.bundesdata.rule=Host(`bundesdata.${DOMAIN}`)"
|
||||||
@ -19,12 +18,10 @@ services:
|
|||||||
db:
|
db:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- reverse-proxy
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- reverse-proxy
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.static-http.entrypoints=websecure"
|
- "traefik.http.routers.static-http.entrypoints=websecure"
|
||||||
|
@ -3,6 +3,7 @@ version: '3.5'
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: ./app
|
build: ./app
|
||||||
|
container_name: bundesdata-web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./app/blog:/usr/src/app/blog
|
- ./app/blog:/usr/src/app/blog
|
||||||
@ -22,6 +23,7 @@ services:
|
|||||||
&& 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:
|
||||||
|
container_name: bundesdata-db
|
||||||
env_file: live.env
|
env_file: live.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
@ -35,6 +37,7 @@ services:
|
|||||||
- ./postgres_data:/var/lib/postgresql/data/
|
- ./postgres_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
|
container_name: bundesdata-nginx
|
||||||
build: ./nginx
|
build: ./nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user