infracloud/containers/vaultwarden.container

25 lines
822 B
Text

[Unit]
Description=Vaultwarden Password Manager
After=network-online.target postgres.service
[Service]
Restart=always
[Container]
Image=docker.io/vaultwarden/server:latest
ContainerName=vaultwarden
Volume=/mnt/data/vaultwarden:/data:Z
Environment=DATABASE_URL=postgresql://saveinmed:ZTLYe7OIBQDVvjOiLWKor8n4J4Ks34ge@postgres-main:5432/vaultwarden
Environment=DOMAIN=https://vault.rede5.com.br
Environment=SIGNUPS_ALLOWED=true
Environment=ADMIN_TOKEN=
PublishPort=8090:80
Network=web_proxy
Label=traefik.enable=true
Label=traefik.http.routers.vaultwarden.rule=Host(`vault.rede5.com.br`)
Label=traefik.http.routers.vaultwarden.entrypoints=websecure
Label=traefik.http.routers.vaultwarden.tls.certresolver=myresolver
Label=traefik.http.services.vaultwarden.loadbalancer.server.port=80
[Install]
WantedBy=multi-user.target