mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-28 19:00:25 +00:00
29 lines
1 KiB
YAML
29 lines
1 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
vaultwarden:
|
|
container_name: vaultwarden
|
|
image: vaultwarden/server:latest
|
|
volumes:
|
|
- '/home/ubuntu/docker/vaultwarden/:/data/'
|
|
restart: unless-stopped
|
|
networks:
|
|
proxy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.vaultwarden.entrypoints=http"
|
|
- "traefik.http.routers.vaultwarden.rule=Host(`vaultwarden.yourdomain.com`)"
|
|
- "traefik.http.middlewares.vaultwarden-https-redirect.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.vaultwarden.middlewares=vaultwarden-https-redirect"
|
|
- "traefik.http.routers.vaultwarden-secure.entrypoints=https"
|
|
- "traefik.http.routers.vaultwarden-secure.rule=Host(`vaultwarden.yourdomain.com`)"
|
|
- "traefik.http.routers.vaultwarden-secure.tls=true"
|
|
- "traefik.http.routers.vaultwarden-secure.service=vaultwarden"
|
|
- "traefik.http.services.vaultwarden.loadbalancer.server.port=80"
|
|
- "traefik.docker.network=proxy"
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|