1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
services: postgres: image: postgres:16-alpine container_name: postgres-itest-mq-bridge ports: - "5432:5432" environment: - POSTGRES_USER=testuser - POSTGRES_PASSWORD=testpass - POSTGRES_DB=testdb healthcheck: test: ["CMD-SHELL", "pg_isready -U testuser -d testdb"] interval: 5s timeout: 5s retries: 5