docker-compose updates

This commit is contained in:
Stephan Porada 2020-12-16 13:26:49 +01:00
parent 807c49ff19
commit b2857312c5
2 changed files with 5 additions and 5 deletions

View File

@ -1,15 +1,14 @@
version: '3.5'
networks:
reverse-proxy:
default:
external:
name: reverse-proxy
name: traefik_default
services:
web:
networks:
- default
- reverse-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.bundesdata.rule=Host(`bundesdata.${DOMAIN}`)"
@ -19,12 +18,10 @@ services:
db:
networks:
- default
- reverse-proxy
nginx:
networks:
- default
- reverse-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.static-http.entrypoints=websecure"

View File

@ -3,6 +3,7 @@ version: '3.5'
services:
web:
build: ./app
container_name: bundesdata-web
restart: unless-stopped
volumes:
- ./app/blog:/usr/src/app/blog
@ -22,6 +23,7 @@ services:
&& gunicorn --bind 0.0.0.0:8000 --workers=4 bundesdata_app.wsgi:application"
db:
container_name: bundesdata-db
env_file: live.env
restart: unless-stopped
environment:
@ -35,6 +37,7 @@ services:
- ./postgres_data:/var/lib/postgresql/data/
nginx:
container_name: bundesdata-nginx
build: ./nginx
restart: unless-stopped
volumes: