Add missing docker-compose networking

This commit is contained in:
Joey Hafner 2022-02-26 23:58:13 -08:00
parent 0980fcc4ad
commit a77d9d1a6f

View File

@ -10,12 +10,15 @@ services:
- db - db
networks: networks:
- web - web
- sharry
labels: labels:
- traefik.http.routers.sharry.rule=Host(`file.jafner.net`) - traefik.http.routers.sharry.rule=Host(`file.jafner.net`)
- traefik.http.routers.sharry.tls.certresolver=lets-encrypt - traefik.http.routers.sharry.tls.certresolver=lets-encrypt
db: db:
image: postgres:14.2 image: postgres:14.2
container_name: sharry_db container_name: sharry_db
networks:
- sharry
volumes: volumes:
- postgres_data:/var/lib/postgresql/data/ - postgres_data:/var/lib/postgresql/data/
environment: environment:
@ -26,5 +29,6 @@ volumes:
postgres_data: postgres_data:
networks: networks:
sharry:
web: web:
external: true external: true