dotfiles/roles/vaultwarden/templates/vaultwarden.container

26 lines
440 B
Text
Raw Permalink Normal View History

# {{ ansible_managed }}
[Unit]
Description=Vaultwarden
After=postgresql.service
Requires=postgresql.service
[Container]
ContainerName=vaultwarden
Image=ghcr.io/dani-garcia/vaultwarden:latest
AutoUpdate=registry
EnvironmentFile=/etc/vaultwarden.ini
Network=vaultwarden.network
PublishPort={{ vaultwarden_http_port }}:80
PublishPort=3012:3012
Volume=vaultwarden-data:/data
[Service]
Restart=always
[Install]
WantedBy=multi-user.target