home-pods/container-authentik-server....

44 lines
1.3 KiB
SYSTEMD
Raw Permalink Normal View History

2022-08-21 10:59:37 +02:00
# container-authentik-server.service
# autogenerated by Podman 4.1.1
# Wed Aug 17 07:18:00 UTC 2022
[Unit]
Description=Podman container-authentik-server.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-server \
--label io.containers.autoupdate=registry \
-v authentik-media:/media:z \
-v authentik-templates:/templates: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 server
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