infra/roles/authentik/templates/authentik-server.service
2024-02-03 16:16:58 -08:00

14 lines
530 B
Desktop File

[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