Files
ansible/roles/authentik/templates/authentik.run.j2
T
2026-10-04 19:34:22 +02:00

21 lines
621 B
Django/Jinja

#!/bin/sh
exec 2>&1
export HOME=/home/authentik
exec chpst -u authentik:authentik -C $HOME \
podman run -it --rm --sig-proxy \
--name=authentik-{{ item }} \
--env-file=/etc/authentik.env \
{% if item == "server" %}
-p 9000:9000 \
{% endif %}
{% if mailhost_is_local is defined and mailhost_is_local %}
--add-host={{ mail_host }}:host-gateway \
{% endif %}
--network=authentik \
-v ./data:/data \
-v ./certs:/certs \
-v ./custom-templates:/templates \
--mount type=bind,src=/tmp/.s.PGSQL.5432,target=/tmp/.s.PGSQL.5432 \
ghcr.io/goauthentik/server:{{ authentik_tag }} {{ item }}