Skip to content

Instantly share code, notes, and snippets.

@dnno
Last active Aug 4, 2021
Embed
What would you like to do?
Systemd service for Vaultwarden
[Unit]
Description=Vaultwarden
After=docker.service network.target
Requires=docker.service network-online.target
[Service]
RemainAfterExit=true
WorkingDirectory=/home/pi
ExecStartPre=/usr/local/bin/docker-compose pull --quiet
ExecStart=/usr/local/bin/docker-compose up
ExecReload=/usr/local/bin/docker-compose pull --quiet
ExecReload=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
Restart=always
RestartSec=30s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment