45 lines
1.3 KiB
SYSTEMD
45 lines
1.3 KiB
SYSTEMD
# container-authentik-worker.service
|
|
# autogenerated by Podman 4.1.1
|
|
# Wed Aug 17 07:18:00 UTC 2022
|
|
|
|
[Unit]
|
|
Description=Podman container-authentik-worker.service
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
RequiresMountsFor=%t/containers
|
|
BindsTo=pod-authentik.service
|
|
After=pod-authentik.service
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
Restart=on-failure
|
|
TimeoutStopSec=70
|
|
ExecStartPre=/bin/rm -f %t/%n.ctr-id
|
|
ExecStart=/usr/bin/podman run \
|
|
--cidfile=%t/%n.ctr-id \
|
|
--cgroups=no-conmon \
|
|
--rm \
|
|
--pod-id-file %t/pod-authentik.pod-id \
|
|
--sdnotify=conmon \
|
|
-d \
|
|
--replace \
|
|
--name authentik-worker \
|
|
--label io.containers.autoupdate=registry \
|
|
-v authentik-media:/media:z \
|
|
-v authentik-templates:/templates:z \
|
|
-v authentik-certs:/certs:Z \
|
|
-e AUTHENTIK_SECRET_KEY=P8UNDagVZS1HMUxoaov7ouP2CxpAuODBpFYyJ773w3N7Pk96m4 \
|
|
-e AUTHENTIK_ERROR_REPORTING__ENABLED=true \
|
|
-e AUTHENTIK_REDIS__HOST=localhost \
|
|
-e AUTHENTIK_POSTGRESQL__HOST=localhost \
|
|
-e AUTHENTIK_POSTGRESQL__USER=authentik \
|
|
-e AUTHENTIK_POSTGRESQL__NAME=authentik \
|
|
-e AUTHENTIK_POSTGRESQL__PASSWORD=authentik ghcr.io/goauthentik/server:latest worker
|
|
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
|
Type=notify
|
|
NotifyAccess=all
|
|
|
|
[Install]
|
|
WantedBy=default.target
|