2026-10-01 23:15:57 +02:00
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:17-alpine
|
|
|
|
|
ports:
|
|
|
|
|
- "${GO_LOOSE_POSTGRES_PORT:-5433}:5432"
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: goloose
|
|
|
|
|
POSTGRES_USER: goloose
|
|
|
|
|
POSTGRES_PASSWORD: goloose
|
|
|
|
|
volumes:
|
|
|
|
|
- postgres-data2:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U goloose -d goloose"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 10
|
2026-10-02 18:56:52 +02:00
|
|
|
networks:
|
|
|
|
|
- go_loose_network
|
2026-10-01 23:15:57 +02:00
|
|
|
go-loose:
|
|
|
|
|
build: .
|
|
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
environment:
|
|
|
|
|
GO_LOOSE_ADDR: ":8080"
|
2026-10-02 21:45:42 +02:00
|
|
|
GO_LOOSE_BASE_URL: "https://auth.dev"
|
|
|
|
|
GO_LOOSE_AUTH_DOMAIN: "auth.dev"
|
|
|
|
|
GO_LOOSE_OIDC_REDIRECT_URL: "https://auth.dev/auth/callback"
|
2026-10-01 23:15:57 +02:00
|
|
|
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"
|
|
|
|
|
GO_LOOSE_LOCAL_LOGIN: "true"
|
|
|
|
|
GO_LOOSE_ALLOW_PRIVATE_CONTRACT_URLS: "true"
|
2026-10-02 21:45:42 +02:00
|
|
|
expose:
|
|
|
|
|
- "8080"
|
2026-10-01 23:15:57 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "/go-loose", "-healthcheck"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 10s
|
2026-10-02 18:56:52 +02:00
|
|
|
networks:
|
2026-10-02 21:45:42 +02:00
|
|
|
go_loose_network: {}
|
|
|
|
|
local_dev_edge:
|
|
|
|
|
aliases:
|
|
|
|
|
- go-loose
|
2026-10-01 23:15:57 +02:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres-data2:
|
2026-10-02 18:56:52 +02:00
|
|
|
networks:
|
2026-10-02 21:45:42 +02:00
|
|
|
go_loose_network:
|
|
|
|
|
local_dev_edge:
|
|
|
|
|
external: true
|
|
|
|
|
name: local-dev-edge
|