Add framework for executing tests against multiple postgresql versions using docker compose.

This commit is contained in:
eelke 2026-10-18 12:09:54 +02:00
parent 655c6fceb1
commit c3bf9e88e4
13 changed files with 457 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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"] }