2022-02-15 16:20:16 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
#Bitwarden ()
|
|
|
|
bitwarden:
|
|
|
|
image: "vaultwarden/server:latest"
|
|
|
|
container_name: vaultwarden
|
|
|
|
volumes:
|
|
|
|
- ./bitwarden/:/data/
|
2022-10-31 21:39:29 +00:00
|
|
|
networks:
|
2023-08-07 22:01:29 +00:00
|
|
|
- proxy
|
2022-11-03 16:16:12 +00:00
|
|
|
labels:
|
|
|
|
## Expose Bitwarden Through Trefik ##
|
|
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
2023-08-21 19:03:13 +00:00
|
|
|
|
|
|
|
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.bitwarden-insecure.middlewares=redirect-web-secure"
|
|
|
|
- "traefik.http.routers.bitwarden-insecure.rule=Host(`bitwarden.luke-else.co.uk`)"
|
|
|
|
- "traefik.http.routers.bitwarden-insecure.entrypoints=web"
|
|
|
|
|
2023-08-09 21:48:07 +00:00
|
|
|
- "traefik.http.routers.bitwarden.rule=Host(`bitwarden.luke-else.co.uk`)"
|
2023-08-07 22:01:29 +00:00
|
|
|
- "traefik.http.routers.bitwarden.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.bitwarden.tls.certresolver=myresolver"
|
2022-10-31 21:39:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
2023-08-07 22:01:29 +00:00
|
|
|
proxy:
|
2022-10-31 21:39:29 +00:00
|
|
|
external: true
|