Compare commits

...

2 commits

Author SHA1 Message Date
4aca41125e
Simplify authentik networking 2024-11-14 14:02:19 +05:00
97f1eef2f8
Scrape authentik metrics 2024-11-14 14:01:47 +05:00
2 changed files with 8 additions and 6 deletions

View file

@ -1,9 +1,8 @@
--- ---
- name: Create authentik networks - name: Create authentik network
become: true become: true
community.docker.docker_network: community.docker.docker_network:
name: "{{ item }}" name: authentik
loop: ["authentik", "authentik-redis"]
- name: Create authnetik docker volumes - name: Create authnetik docker volumes
become: true become: true
community.docker.docker_volume: community.docker.docker_volume:
@ -16,7 +15,7 @@
image: redis:7.4-bookworm image: redis:7.4-bookworm
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"] command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
networks: networks:
- name: authentik-redis - name: authentik
volumes: volumes:
- authentik-redis:/data - authentik-redis:/data
restart_policy: unless-stopped restart_policy: unless-stopped
@ -40,9 +39,9 @@
command: ["server"] command: ["server"]
networks: networks:
- name: authentik - name: authentik
- name: authentik-redis
- name: postgresql - name: postgresql
- name: haproxy - name: haproxy
- name: monitoring
user: root user: root
volumes: volumes:
- authentik-media:/media - authentik-media:/media
@ -69,7 +68,6 @@
command: ["worker"] command: ["worker"]
networks: networks:
- name: authentik - name: authentik
- name: authentik-redis
- name: postgresql - name: postgresql
volumes: volumes:
- authentik-media:/media - authentik-media:/media
@ -93,6 +91,7 @@
networks: networks:
- name: authentik - name: authentik
- name: haproxy - name: haproxy
- name: monitoring
volumes: volumes:
- authentik-certs:/certs - authentik-certs:/certs
- /etc/letsencrypt/live/comfycamp.space/fullchain.pem:/certs/comfycamp.space/fullchain.pem:ro - /etc/letsencrypt/live/comfycamp.space/fullchain.pem:/certs/comfycamp.space/fullchain.pem:ro

View file

@ -14,3 +14,6 @@ scrape_configs:
scheme: http scheme: http
static_configs: static_configs:
- targets: ["minio:9000"] - targets: ["minio:9000"]
- job_name: authentik
static_configs:
- targets: ["authentik-1:9300"]