infra/roles/authentik/templates/authentik-server.service

15 lines
530 B
SYSTEMD
Raw Normal View History

2024-02-04 00:16:58 +00:00
[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