Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rm4nd authored Feb 14, 2023
1 parent df69faa commit f2cec85
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions vaultwarden/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 7,7 @@ services:
- 192.168.178.78
- 1.1.1.1
environment:
#- ADMIN_TOKEN=/run/secrets/vaultwarden-admin-pw
#- ADMIN_TOKEN=MySecureAdminTokenPasswordForAdminArea
#- [email protected]
#- globalSettings__mail__smtp__host=smtp.gmail.com
#- [email protected]
Expand All @@ -26,21 26,23 @@ services:
ports:
- 8888:80
image: vaultwarden/server:latest
labels:
#- com.centurylinklabs.watchtower.monitor-only=true
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.vaultwarden.rule=Host(`bitwarden.example.com`)
- traefik.http.routers.vaultwarden.service=vaultwarden
- traefik.http.services.vaultwarden.loadbalancer.server.port=80
- traefik.http.routers.vaultwarden-ws.rule=Host(`bitwarden.example.com`) && Path(`/notifications/hub`)
- traefik.http.routers.vaultwarden-ws.service=vaultwarden-ws
- traefik.http.services.vaultwarden-ws.loadbalancer.server.port=3012
#labels:
# - com.centurylinklabs.watchtower.monitor-only=true
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.vaultwarden.rule=Host(`bitwarden.example.com`)
# - traefik.http.routers.vaultwarden.service=vaultwarden
# - traefik.http.services.vaultwarden.loadbalancer.server.port=80
# - traefik.http.routers.vaultwarden-ws.rule=Host(`bitwarden.example.com`) && Path(`/notifications/hub`)
# - traefik.http.routers.vaultwarden-ws.service=vaultwarden-ws
# - traefik.http.services.vaultwarden-ws.loadbalancer.server.port=3012
restart: unless-stopped
volumes:
- /mnt/docker-volumes/vaultwarden/data:/data
- /mnt/docker-volumes/vaultwarden/logs:/data/logs

# this service will backup your vaultwarden instance corretly
# see https://github.com/Bruceforce/vaultwarden-backup for more information
vaultwarden-backup:
container_name: vaultwarden-backup
hostname: vaultwarden-backup
Expand All @@ -63,4 65,4 @@ services:
- GID=1000
- TZ=Europe/Berlin
- BACKUP_DIR=/myBackup
- CRON_TIME=50 3 * * *
- CRON_TIME=50 3 * * * # see https://crontab.guru/

0 comments on commit f2cec85

Please sign in to comment.