39 lines
1.0 KiB
SYSTEMD
39 lines
1.0 KiB
SYSTEMD
|
# container-authentik-postgres.service
|
||
|
# autogenerated by Podman 4.1.1
|
||
|
# Wed Aug 17 07:18:00 UTC 2022
|
||
|
|
||
|
[Unit]
|
||
|
Description=Podman container-authentik-postgres.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-postgres \
|
||
|
--label io.containers.autoupdate=registry \
|
||
|
-v authentik-db:/var/lib/postgresql/data:Z \
|
||
|
-e POSTGRES_PASSWORD=authentik \
|
||
|
-e POSTGRES_USER=authentik \
|
||
|
-e POSTGRES_DB=authentik docker.io/postgres:12-alpine
|
||
|
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
|