services: app: build: . expose: - 5000 ports: - "127.0.0.1:5000:5000" environment: - SECRET_KEY=${SECRET_KEY:-dev-secret-key} - DATABASE_URL=postgresql://slotfinder:slotfinder@postgres/slotfinder - OIDC_CLIENT_ID=slotfinder - OIDC_CLIENT_SECRET=slotfinder-dev-secret - OIDC_DISCOVERY_URL=${OIDC_DISCOVERY_URL:-http://localhost:8080/realms/master/.well-known/openid-configuration} depends_on: postgres: condition: service_healthy postgres: image: postgres:16-alpine expose: - 5432 ports: - "127.0.0.1:5432:5432" environment: POSTGRES_USER: slotfinder POSTGRES_PASSWORD: slotfinder POSTGRES_DB: slotfinder volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U slotfinder"] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: