From b984c8a90c1bfe2f7b6a233a5dc7323b639a7331 Mon Sep 17 00:00:00 2001 From: Daniel Noulet Date: Sat, 3 Oct 2026 05:17:06 +0200 Subject: [PATCH] feat: read the identity domain from the environment Compose hardcoded auth.dev, so rehearsing a deployment meant editing a tracked file and losing the change on the next pull. Read the three domain values from the environment with the default kept at auth.dev, so a plain docker compose up behaves exactly as before. --- docker-compose.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e607cf7..d30293b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -23,9 +23,9 @@ services: condition: service_healthy environment: GO_LOOSE_ADDR: ":8080" - GO_LOOSE_BASE_URL: "https://auth.dev" - GO_LOOSE_AUTH_DOMAIN: "auth.dev" - GO_LOOSE_OIDC_REDIRECT_URL: "https://auth.dev/auth/callback" + GO_LOOSE_BASE_URL: "${GO_LOOSE_BASE_URL:-https://auth.dev}" + GO_LOOSE_AUTH_DOMAIN: "${GO_LOOSE_AUTH_DOMAIN:-auth.dev}" + GO_LOOSE_OIDC_REDIRECT_URL: "${GO_LOOSE_OIDC_REDIRECT_URL:-https://auth.dev/auth/callback}" GO_LOOSE_DATABASE_URL: "postgres://goloose:goloose@postgres:5432/goloose?sslmode=disable" GO_LOOSE_SESSION_SECRET: "local-development-secret-change-me-now" GO_LOOSE_DEV_LOGIN: "false"