Traefik in its own directory

This commit is contained in:
gw3000 2023-07-30 19:25:24 +02:00
parent 75a891c677
commit 63d52c7bf9
6 changed files with 14 additions and 9 deletions

View file

@ -32,8 +32,8 @@ services:
db:
image: postgres:15-alpine
volumes:
- ./postgres_data:/var/lib/postgresql/data/
- ./postgres_backup:/backup
- ./postgres/data:/var/lib/postgresql/data/
- ./postgres/backup:/backup
expose:
- 5432
environment:
@ -43,13 +43,13 @@ services:
traefik:
build:
context: .
dockerfile: Dockerfile.traefik
dockerfile: ./traefik/Dockerfile.traefik
ports:
- 80:80
- 443:443
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik-public-certificates:/certificates"
- "./traefik/traefik-public-certificates:/certificates"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`dashboard-fbf.nabu-jena.de`)"