services: db-is-ready: # This should match the version of postgres used in the CI workflow image: postgis/postgis:18-3.6-alpine platform: linux/x86_64 network_mode: host command: - 'sh' - '-c' - 'until pg_isready -h localhost -p ${PGPORT:-5411} -U postgres; do sleep 1; done' restart: 'no' environment: - PGDATABASE=db - PGUSER=postgres - PGPASSWORD=postgres - PGHOST=localhost - PGPORT=${PGPORT:-5411} db: # This should match the version of postgres used in the CI workflow image: postgis/postgis:18-3.6-alpine platform: linux/x86_64 restart: unless-stopped ports: - '${PGPORT:-5411}:5432' command: - '-c' - 'max_connections=200' environment: # POSTGRES_* variables are used by the postgis/postgres image # PG_* variables are used by psql - POSTGRES_DB=db - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - PGDATABASE=db - PGUSER=postgres - PGPASSWORD=postgres volumes: - ./tests/fixtures:/fixtures - ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh db-ssl: # This should match the version of postgres used in the CI workflow image: postgis/postgis:18-3.6 platform: linux/x86_64 command: - 'postgres' - '-c' - 'ssl=on' - '-c' - 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem' - '-c' - 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key' restart: unless-stopped ports: - '${PGPORT:-5411}:5432' environment: # POSTGRES_* variables are used by the postgis/postgres image # PG_* variables are used by psql - POSTGRES_DB=db - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - PGDATABASE=db - PGUSER=postgres - PGPASSWORD=postgres volumes: - ./tests/fixtures:/fixtures - ./tests/fixtures/initdb-dc-ssl.sh:/docker-entrypoint-initdb.d/10_martin.sh - ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh db-ssl-cert: # This should match the version of postgres used in the CI workflow image: postgis/postgis:18-3.6 platform: linux/x86_64 command: - 'postgres' - '-c' - 'ssl=on' - '-c' - 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem' - '-c' - 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key' restart: unless-stopped ports: - '${PGPORT:-5411}:5432' environment: # POSTGRES_* variables are used by the postgis/postgres image # PG_* variables are used by psql - POSTGRES_DB=db - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - PGDATABASE=db - PGUSER=postgres - PGPASSWORD=postgres volumes: - ./tests/fixtures:/fixtures - ./tests/fixtures/initdb-dc-ssl-cert.sh:/docker-entrypoint-initdb.d/10_martin.sh - ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh db-legacy: # This should match the version of postgres used in the CI workflow image: postgis/postgis:15-3.5-alpine platform: linux/x86_64 restart: unless-stopped ports: - '${PGPORT:-5411}:5432' environment: - POSTGRES_DB=db - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - PGDATABASE=db - PGUSER=postgres - PGPASSWORD=postgres volumes: - ./tests/fixtures:/fixtures - ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh ogc-ets: # The OGC API - Tiles conformance suite, for `just test-ogc` image: ogccite/ets-ogcapi-tiles10:latest@sha256:af8e8ab4f8c131c71ca02a4b05419007657e49cef6c668ecfdbe02b58c002ffc platform: linux/x86_64 network_mode: host restart: 'no' ogc-ets-maps: # The OGC API - Maps conformance suite on port 8081, for `just test-ogc-maps` build: tests/ogc-ets-maps platform: linux/x86_64 network_mode: host restart: 'no'