15 lines
517 B
SYSTEMD
15 lines
517 B
SYSTEMD
|
[Unit]
|
||
|
Description=Authentik Server
|
||
|
Wants=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
ExecStartPre=/usr/bin/podman pull ghcr.io/goauthentik/server:2023.10.6
|
||
|
ExecStartPre=-/usr/bin/podman stop authentik-worker
|
||
|
ExecStartPre=-/usr/bin/podman rm authentik-server
|
||
|
ExecStart=/usr/bin/podman run --rm -v /var/lib/authentik/media:/media -v /var/lib/authentik/templates:/templates --env-file /etc/authentik.env --name authentik-worker ghcr.io/goauthentik/server:2023.10.6 worker
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|