Updated all containers to bring inline with needed Traefik config

This commit is contained in:
2023-08-07 23:01:29 +01:00
parent 97b4dc6a66
commit 7a553128b1
5 changed files with 30 additions and 46 deletions

View File

@ -9,19 +9,18 @@ services:
volumes:
- ./bitwarden/:/data/
networks:
- bitwarden
- proxy
depends_on:
- traefik
labels:
## Expose Bitwarden Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.services.bitwarden.loadbalancer.server.port=80"
- "traefik.http.routers.bitwarden.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.bitwarden.entrypoints=http"
- "traefik.http.routers.bitwarden.middlewares=redirect@file"
- "traefik.http.routers.bitwarden-secured.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.bitwarden-secured.entrypoints=https"
- "traefik.http.routers.bitwarden-secured.tls.certresolver=mytlschallenge"
- "traefik.http.routers.bitwarden.entrypoints=websecure"
- "traefik.http.routers.bitwarden.tls.certresolver=myresolver"
restart: unless-stopped
networks:
bitwarden:
proxy:
external: true