2019-08-28 14:04:15 +03:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2023-02-06 22:32:28 +03:00
|
|
|
db-is-ready:
|
|
|
|
# This should match the version of postgres used in the CI workflow
|
2023-07-07 23:44:30 +03:00
|
|
|
image: postgis/postgis:14-3.3-alpine
|
2023-02-06 22:32:28 +03:00
|
|
|
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}
|
|
|
|
|
2020-12-27 16:47:47 +03:00
|
|
|
db:
|
2023-01-01 08:03:21 +03:00
|
|
|
# This should match the version of postgres used in the CI workflow
|
2022-10-25 21:54:36 +03:00
|
|
|
image: postgis/postgis:14-3.3-alpine
|
2020-12-27 16:35:05 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2023-02-06 22:32:28 +03:00
|
|
|
- "${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.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:15-3.3
|
|
|
|
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"
|
2020-12-27 16:35:05 +03:00
|
|
|
environment:
|
2022-10-25 21:54:36 +03:00
|
|
|
# POSTGRES_* variables are used by the postgis/postgres image
|
|
|
|
# PG_* variables are used by psql
|
2020-12-27 16:35:05 +03:00
|
|
|
- POSTGRES_DB=db
|
|
|
|
- POSTGRES_USER=postgres
|
2023-02-06 22:32:28 +03:00
|
|
|
- POSTGRES_PASSWORD=postgres
|
2022-10-25 21:54:36 +03:00
|
|
|
- PGDATABASE=db
|
|
|
|
- PGUSER=postgres
|
2023-02-06 22:32:28 +03:00
|
|
|
- PGPASSWORD=postgres
|
2020-12-27 16:35:05 +03:00
|
|
|
volumes:
|
|
|
|
- ./tests/fixtures:/fixtures
|
2023-09-30 19:38:57 +03:00
|
|
|
- ./tests/fixtures/initdb-dc-ssl.sh:/docker-entrypoint-initdb.d/10_martin.sh
|
2022-10-25 21:54:36 +03:00
|
|
|
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
|
2020-12-27 16:35:05 +03:00
|
|
|
|
2023-10-01 05:49:56 +03:00
|
|
|
db-ssl-cert:
|
|
|
|
# This should match the version of postgres used in the CI workflow
|
|
|
|
image: postgis/postgis:15-3.3
|
|
|
|
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
|
|
|
|
|
2020-12-27 16:47:47 +03:00
|
|
|
db-legacy:
|
2023-01-01 08:03:21 +03:00
|
|
|
# This should match the version of postgres used in the CI workflow
|
2022-12-04 08:34:44 +03:00
|
|
|
image: postgis/postgis:11-3.0-alpine
|
2019-08-28 14:04:15 +03:00
|
|
|
restart: unless-stopped
|
2019-08-30 18:42:24 +03:00
|
|
|
ports:
|
2023-02-06 22:32:28 +03:00
|
|
|
- "${PGPORT:-5411}:5432"
|
2019-08-28 14:04:15 +03:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=db
|
|
|
|
- POSTGRES_USER=postgres
|
2023-02-06 22:32:28 +03:00
|
|
|
- POSTGRES_PASSWORD=postgres
|
2022-10-25 21:54:36 +03:00
|
|
|
- PGDATABASE=db
|
|
|
|
- PGUSER=postgres
|
2023-06-02 18:37:19 +03:00
|
|
|
- PGPASSWORD=postgres
|
2019-08-28 14:04:15 +03:00
|
|
|
volumes:
|
2020-12-27 16:35:05 +03:00
|
|
|
- ./tests/fixtures:/fixtures
|
2022-10-25 21:54:36 +03:00
|
|
|
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
|