2024-09-26 22:02:36 +00:00
|
|
|
---
|
|
|
|
authentik_svc:
|
2024-10-18 23:01:15 +00:00
|
|
|
domain: "{{ all_services | service_get_domain(role_name) }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
port: 9000
|
2024-09-28 12:14:09 +00:00
|
|
|
image_tag: 2024.8
|
2024-09-26 22:02:36 +00:00
|
|
|
db:
|
|
|
|
host: "{{ postgres.host }}"
|
2024-09-28 20:43:47 +00:00
|
|
|
user: "{{ opentofu.postgresql_data.authentik.user }}"
|
|
|
|
pass: "{{ opentofu.postgresql_data.authentik.pass }}"
|
|
|
|
database: "{{ opentofu.postgresql_data.authentik.database }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
|
|
|
|
authentik_env:
|
|
|
|
AUTHENTIK_SECRET_KEY: "{{ vault_authentik.secret_key }}"
|
|
|
|
|
|
|
|
AUTHENTIK_EMAIL__HOST: "{{ mailer.host }}"
|
|
|
|
AUTHENTIK_EMAIL__PORT: "{{ mailer.port }}"
|
2024-10-29 21:43:05 +00:00
|
|
|
AUTHENTIK_EMAIL__USERNAME: "{{ opentofu.mailcow_data.authentik.address }}"
|
|
|
|
AUTHENTIK_EMAIL__PASSWORD: "{{ opentofu.mailcow_data.authentik.password }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
AUTHENTIK_EMAIL__USE_TLS: true
|
|
|
|
AUTHENTIK_EMAIL__USE_SSL: false
|
|
|
|
AUTHENTIK_EMAIL__TIMEOUT: 10
|
2024-10-29 21:43:05 +00:00
|
|
|
AUTHENTIK_EMAIL__FROM: "{{ opentofu.mailcow_data.authentik.address }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
|
|
|
|
AUTHENTIK_AVATARS: none
|
|
|
|
|
|
|
|
AUTHENTIK_REDIS__HOST: redis
|
|
|
|
|
|
|
|
AUTHENTIK_POSTGRESQL__HOST: "{{ svc.db.host }}"
|
|
|
|
AUTHENTIK_POSTGRESQL__NAME: "{{ svc.db.database }}"
|
|
|
|
AUTHENTIK_POSTGRESQL__USER: "{{ svc.db.user }}"
|
|
|
|
AUTHENTIK_POSTGRESQL__PASSWORD: "{{ svc.db.pass }}"
|
|
|
|
|
|
|
|
authentik_compose:
|
|
|
|
watchtower: false
|
|
|
|
image: ghcr.io/goauthentik/server:{{ svc.image_tag }}
|
|
|
|
file:
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
command: server
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
worker:
|
|
|
|
image: ghcr.io/goauthentik/server:{{ svc.image_tag }}
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
user: root
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2024-09-28 19:24:11 +00:00
|
|
|
- ./certs:/certs
|
2024-09-26 22:02:36 +00:00
|
|
|
env_file:
|
|
|
|
- service.env
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
default:
|