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.
This commit is contained in:
Daniel Noulet 2026-10-03 05:17:06 +02:00
parent 84b64310fe
commit b984c8a90c

View file

@ -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"