services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: ${POSTGRES_DB:-nodedc_agent_gateway} POSTGRES_USER: ${POSTGRES_USER:-nodedc_agent_gateway} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-replace-with-local-postgres-password} ports: - "${POSTGRES_PORT:-54100}:5432" volumes: - agent-gateway-postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 10 agent-gateway: build: context: . env_file: - .env depends_on: postgres: condition: service_healthy ports: - "${PORT:-4100}:${PORT:-4100}" volumes: agent-gateway-postgres: