services: gateway: build: . ports: - "8080:8080" volumes: - ./gateway.yaml:/app/gateway.yaml:ro - ./policies:/app/policies:ro - ./annotations.yaml:/app/annotations.yaml:ro - gateway-data:/app/data depends_on: postgres: condition: service_healthy environment: - TZ=UTC postgres: image: postgres:16-alpine environment: POSTGRES_DB: production POSTGRES_USER: gateway_admin POSTGRES_PASSWORD: admin_password ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data - ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init.sql:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U gateway_admin -d production"] interval: 5s timeout: 5s retries: 10 volumes: gateway-data: postgres-data: