Simplify authentik networking

This commit is contained in:
Ivan R. 2024-11-14 14:02:19 +05:00
parent 97f1eef2f8
commit 4aca41125e
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -1,9 +1,8 @@
---
- name: Create authentik networks
- name: Create authentik network
become: true
community.docker.docker_network:
name: "{{ item }}"
loop: ["authentik", "authentik-redis"]
name: authentik
- name: Create authnetik docker volumes
become: true
community.docker.docker_volume:
@ -16,7 +15,7 @@
image: redis:7.4-bookworm
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
networks:
- name: authentik-redis
- name: authentik
volumes:
- authentik-redis:/data
restart_policy: unless-stopped
@ -40,7 +39,6 @@
command: ["server"]
networks:
- name: authentik
- name: authentik-redis
- name: postgresql
- name: haproxy
- name: monitoring
@ -70,7 +68,6 @@
command: ["worker"]
networks:
- name: authentik
- name: authentik-redis
- name: postgresql
volumes:
- authentik-media:/media