docker-postgis/scenario_tests/extensions/docker-compose.yml

45 wiersze
1.1 KiB
YAML

version: '2.1'
services:
pg:
image: 'kartoza/postgis:${TAG:-manual-build}'
restart: 'always'
# You can optionally mount to volume, to play with the persistence and
# observe how the node will behave after restarts.
volumes:
- ./tests:/tests
- ../utils:/lib/utils
environment:
ALLOW_IP_RANGE: '0.0.0.0/0'
TEST_CLASS: test_extensions.TestExtensions
POSTGRES_PASS: 'docker'
ports:
- "7777:5432"
healthcheck:
interval: 60s
timeout: 30s
retries: 3
test: "pg_isready"
pg-two-extensions:
image: 'kartoza/postgis:${TAG:-manual-build}'
restart: 'always'
# You can optionally mount to volume, to play with the persistence and
# observe how the node will behave after restarts.
volumes:
- ./tests:/tests
- ../utils:/lib/utils
environment:
ALLOW_IP_RANGE: '0.0.0.0/0'
TEST_CLASS: test_extensions.TestExtensions
POSTGRES_MULTIPLE_EXTENSIONS: postgis,pgrouting
POSTGRES_PASS: 'docker'
ports:
- "7776:5432"
healthcheck:
interval: 60s
timeout: 30s
retries: 3
test: "pg_isready"