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:
|
|
|
|
- bitwarden
|
|
|
|
depends_on:
|
|
|
|
- traefik
|
2022-11-03 16:16:12 +00:00
|
|
|
labels:
|
|
|
|
## Expose Bitwarden Through Trefik ##
|
|
|
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
2022-11-03 16:23:23 +00:00
|
|
|
- "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"
|
2022-11-03 16:16:12 +00:00
|
|
|
|
2022-11-03 16:23:23 +00:00
|
|
|
- "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"
|
2022-10-31 21:39:29 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
networks:
|
|
|
|
bitwarden:
|
|
|
|
external: true
|