diff --git a/files/authelia/configuration.template.yml b/files/authelia/configuration.template.yml index dcd97e4..bb21507 100644 --- a/files/authelia/configuration.template.yml +++ b/files/authelia/configuration.template.yml @@ -895,9 +895,9 @@ session: ## ## Important: Kubernetes (or HA) users must read https://www.authelia.com/t/statelessness ## - # redis: - # host: '127.0.0.1' - # port: 6379 + redis: + host: 'authelia_redis' + port: 6379 ## Use a unix socket instead # host: '/var/run/redis/redis.sock' diff --git a/files/authelia/docker-compose.yml.j2 b/files/authelia/docker-compose.template.yml similarity index 60% rename from files/authelia/docker-compose.yml.j2 rename to files/authelia/docker-compose.template.yml index 6cdfc37..04ad110 100644 --- a/files/authelia/docker-compose.yml.j2 +++ b/files/authelia/docker-compose.template.yml @@ -7,9 +7,19 @@ services: restart: 'unless-stopped' networks: - "web_proxy_network" + - "monitoring_network" volumes: - "{{ config_dir }}:/config" + authelia_redis: + image: valkey/valkey:9-alpine + container_name: authelia_redis + restart: unless-stopped + networks: + - "monitoring_network" + networks: web_proxy_network: external: true + monitoring_network: + external: true diff --git a/playbook-authelia.yml b/playbook-authelia.yml index 7f35955..8667a87 100644 --- a/playbook-authelia.yml +++ b/playbook-authelia.yml @@ -49,7 +49,7 @@ - name: "Copy docker compose file" ansible.builtin.template: - src: "./files/{{ app_name }}/docker-compose.yml.j2" + src: "./files/{{ app_name }}/docker-compose.template.yml" dest: "{{ base_dir }}/docker-compose.yml" owner: "{{ app_user }}" group: "{{ app_user }}"