authentik: migrate to service role
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
authentik_service_name: "authentik{{ '_' + docker_service_suffix if docker_service_suffix is defined else '' }}"
|
authentik_service_name: "authentik{{ '_' + docker_service_suffix if docker_service_suffix is defined else '' }}"
|
||||||
|
|
||||||
- name: Authentik container
|
- name: Authentik container
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: authentik
|
docker_service: authentik
|
||||||
docker_image: beryju/authentik:latest
|
docker_image: beryju/authentik:latest
|
||||||
@@ -19,17 +19,18 @@
|
|||||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
- path: /media
|
- path: /media
|
||||||
absolute_name: "{{ authentik_service_name }}_media"
|
name: "media"
|
||||||
- path: /templates
|
- path: /templates
|
||||||
absolute_name: "{{ authentik_service_name }}_templates"
|
name: "templates"
|
||||||
- path: /certs
|
- path: /certs
|
||||||
name: "{{ authentik_service_name }}_certs"
|
name: "certs"
|
||||||
|
|
||||||
- name: Authentik worker container
|
- name: Authentik worker container
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.include_role:
|
||||||
name: container
|
name: service
|
||||||
vars:
|
vars:
|
||||||
docker_service: authentik_worker
|
docker_namespace: authentik
|
||||||
|
docker_service: worker
|
||||||
docker_image: beryju/authentik:latest
|
docker_image: beryju/authentik:latest
|
||||||
docker_command:
|
docker_command:
|
||||||
- worker
|
- worker
|
||||||
@@ -37,8 +38,8 @@
|
|||||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||||
docker_mounts:
|
docker_mounts:
|
||||||
- path: /media
|
- path: /media
|
||||||
absolute_name: "{{ authentik_service_name }}_media"
|
name: "media"
|
||||||
- path: /templates
|
- path: /templates
|
||||||
absolute_name: "{{ authentik_service_name }}_templates"
|
name: "templates"
|
||||||
- path: /certs
|
- path: /certs
|
||||||
name: "{{ authentik_service_name }}_certs"
|
name: "certs"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
authentik_common_env:
|
authentik_common_env:
|
||||||
AUTHENTIK_REDIS__HOST: authentik_redis
|
AUTHENTIK_REDIS__HOST: authentik-redis
|
||||||
AUTHENTIK_POSTGRESQL__HOST: authentik_db
|
AUTHENTIK_POSTGRESQL__HOST: authentik-db
|
||||||
AUTHENTIK_POSTGRESQL__USER: authentik
|
AUTHENTIK_POSTGRESQL__USER: authentik
|
||||||
AUTHENTIK_POSTGRESQL__NAME: authentik
|
AUTHENTIK_POSTGRESQL__NAME: authentik
|
||||||
AUTHENTIK_POSTGRESQL__PASSWORD: "{{ database_passwords.authentik }}"
|
AUTHENTIK_POSTGRESQL__PASSWORD: "{{ database_passwords.authentik }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user