version: "3.9" services: postgres: image: postgres:16-alpine environment: POSTGRES_DB: crm_core POSTGRES_USER: crm POSTGRES_PASSWORD: crm ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U crm"] interval: 5s timeout: 5s retries: 5 volumes: - pgdata:/var/lib/postgresql/data crm-core: build: . environment: APP_ENV: development HTTP_ADDR: :8080 DATABASE_URL: postgres://crm:crm@postgres:5432/crm_core?sslmode=disable JWKS_URL: http://identity-gateway/.well-known/jwks.json ports: - "8080:8080" depends_on: postgres: condition: service_healthy volumes: pgdata: