x-pg: &pg environment: { POSTGRES_PASSWORD: test } tmpfs: [/var/lib/postgresql/data] command: > postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c max_connections=200 healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 1s retries: 30 services: pg14: { <<: *pg, image: "postgres:14", ports: ["54314:5432"] } pg15: { <<: *pg, image: "postgres:15", ports: ["54315:5432"] } pg16: { <<: *pg, image: "postgres:16", ports: ["54316:5432"] } pg17: { <<: *pg, image: "postgres:17", ports: ["54317:5432"] }