mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 03:09:20 -07:00
Add auto-update command and quadlet option
@@ -38,6 +38,7 @@ Description=Vaultwarden container
|
|||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
|
AutoUpdate=registry
|
||||||
Image=ghcr.io/dani-garcia/vaultwarden:latest
|
Image=ghcr.io/dani-garcia/vaultwarden:latest
|
||||||
Exec=/start.sh
|
Exec=/start.sh
|
||||||
EnvironmentFile=/etc/vaultwarden.env
|
EnvironmentFile=/etc/vaultwarden.env
|
||||||
@@ -48,7 +49,17 @@ PublishPort=8080:8080
|
|||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
```
|
```
|
||||||
|
|
||||||
After editing the quadlet, run `systemctl daemon-reload` to create or updates the systemd unit. You control this container using regular `systemctl` commands.
|
After editing the quadlet, run `systemctl daemon-reload` to create or updates the systemd unit. You control this container using regular `systemctl` commands, e.g. `systemctl start vaultwarden.service`.
|
||||||
|
|
||||||
|
## Auto update
|
||||||
|
[auto-update](https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html#description) automates the update process.
|
||||||
|
```sh
|
||||||
|
sudo podman auto-update
|
||||||
|
```
|
||||||
|
Or, you can enable the timer which invokes auto-update daily (by default, may be edited).
|
||||||
|
```sh
|
||||||
|
sudo systemctl enable podman-auto-update.timer
|
||||||
|
```
|
||||||
|
|
||||||
# Creating a systemd service file (older Podman versions)
|
# Creating a systemd service file (older Podman versions)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user