15 lines
530 B
SYSTEMD
15 lines
530 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-server
|
||
|
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 -p 9000:9000 --env-file /etc/authentik.env --name authentik-server ghcr.io/goauthentik/server:2023.10.6 server
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|