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

15 lines
517 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-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