name: moyi-control-plane services: postgres: image: postgres:16-alpine restart: unless-stopped ports: - "${CONTROL_PLANE_POSTGRES_PORT:-5434}:5432" environment: POSTGRES_USER: ${CONTROL_PLANE_POSTGRES_USER:-moyi} POSTGRES_PASSWORD: ${CONTROL_PLANE_POSTGRES_PASSWORD:?Set CONTROL_PLANE_POSTGRES_PASSWORD in infra/control-plane/.env} POSTGRES_DB: ${CONTROL_PLANE_POSTGRES_DB:-moyi_control} volumes: - control_plane_postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 10 volumes: control_plane_postgres_data: