From 8bf93e4b187c9418264d4aa4dacd91b16ac4947f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 15 Feb 2024 00:16:48 -0800 Subject: [PATCH] Update keycloak to new env_file format --- .../config/keycloak/docker-compose.yml | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/homelab/fighter/config/keycloak/docker-compose.yml b/homelab/fighter/config/keycloak/docker-compose.yml index 90acbad9..c6b8cb55 100644 --- a/homelab/fighter/config/keycloak/docker-compose.yml +++ b/homelab/fighter/config/keycloak/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.0' services: keycloak: @@ -21,8 +21,10 @@ services: - postgres command: start env_file: - - keycloak.env - - keycloak_secrets.env + - path: ./keycloak.env + required: true + - path: ./keycloak_secrets.env + required: false labels: traefik.http.routers.keycloak.rule: Host(`keycloak.jafner.net`) traefik.http.routers.keycloak.tls.certresolver: lets-encrypt @@ -43,8 +45,10 @@ services: keycloak: condition: service_healthy env_file: - - forwardauth.env - - forwardauth_secrets.env + - path: ./forwardauth.env + required: true + - path: ./forwardauth_secrets.env + required: false labels: - "traefik.enable=false" - "traefik.http.routers.forwardauth.rule=Path(`/_oauth`)" @@ -63,8 +67,10 @@ services: keycloak: condition: service_healthy env_file: - - forwardauth-privileged.env - - forwardauth-privileged_secrets.env + - path: ./forwardauth-privileged.env + required: true + - path: ./forwardauth-privileged_secrets.env + required: false labels: - "traefik.enable=false" - "traefik.http.routers.forwardauth-privileged.rule=Path(`/_oauth`)" @@ -76,6 +82,10 @@ services: networks: - keycloak env_file: + - path: ./postgres.env + required: true + - path: ./postgres_secrets.env + required: false - postgres.env - postgres_secrets.env volumes: