chore: helm configuration

This commit is contained in:
Daniel Noulet 2026-10-07 15:07:22 +02:00
parent 49ab89ae46
commit 0f5d582d1f
12 changed files with 558 additions and 0 deletions

65
docker-compose.tst.yaml Normal file
View file

@ -0,0 +1,65 @@
# TST stack: docker compose -f docker-compose.tst up --build
#
# Go Loose for testing environment. Similar to dev but pointed at tst services.
#
services:
postgres:
image: postgres:17-alpine
ports:
- "${GO_LOOSE_POSTGRES_PORT:-5433}:5432"
environment:
POSTGRES_DB: goloose
POSTGRES_USER: goloose
POSTGRES_PASSWORD: goloose
volumes:
- db-data-tst:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U goloose -d goloose"]
interval: 5s
timeout: 3s
retries: 10
networks:
- go_loose_tst_network
go-loose:
build:
context: .
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
GO_LOOSE_ADDR: ":8080"
GO_LOOSE_BASE_URL: "${GO_LOOSE_BASE_URL:-http://tst-intern-urpi.be:8080}"
GO_LOOSE_AUTH_DOMAIN: "${GO_LOOSE_AUTH_DOMAIN:-auth-tst.intern-urpi.be}"
GO_LOOSE_DATABASE_URL: "postgres://goloose:goloose@postgres:5432/goloose?sslmode=disable"
GO_LOOSE_SESSION_SECRET: "${GO_LOOSE_SESSION_SECRET:-tst-session-secret-change-me}"
GO_LOOSE_DEV_LOGIN: "false"
GO_LOOSE_LOCAL_LOGIN: "false"
GO_LOOSE_LOCAL_ADMIN_EMAIL: "admin@tst.goloose.local"
GO_LOOSE_LOCAL_ADMIN_PASSWORD: "${GO_LOOSE_LOCAL_ADMIN_PASSWORD:-}"
GO_LOOSE_ALLOWED_EMAIL_DOMAINS: ""
GO_LOOSE_ALLOW_PRIVATE_CONTRACT_URLS: "true"
GO_LOOSE_BOOTSTRAP_TENANT: "nmbs"
GO_LOOSE_BOOTSTRAP_APP: "guess"
GO_LOOSE_OIDC_ISSUER: "https://accounts.google.com"
GO_LOOSE_OIDC_CLIENT_ID: "554628171917-forvpfs44pqajv77dfhl503prfqnhor3.apps.googleusercontent.com"
GO_LOOSE_OIDC_CLIENT_SECRET: "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"
GO_LOOSE_OIDC_REDIRECT_URL: "https://auth-tst.intern-urpi.be/auth/callback"
ports:
- "${GO_LOOSE_TST_PORT:-8080}:8080"
healthcheck:
test: ["CMD", "/src/dist/go-loose", "-healthcheck"]
interval: 10s
timeout: 3s
retries: 5
start_period: 20s
init: true
networks:
- go_loose_tst_network
networks:
go_loose_tst_network:
volumes:
db-data-tst: