28 lines
843 B
YAML
28 lines
843 B
YAML
name: investmoz-local-qa
|
|
services:
|
|
postgres:
|
|
image: postgis/postgis:17-3.5
|
|
command: ['postgres', '-p', '55441']
|
|
restart: unless-stopped
|
|
stop_grace_period: 60s
|
|
environment:
|
|
POSTGRES_DB: investmoz_local_test
|
|
POSTGRES_USER: investmoz_test
|
|
POSTGRES_PASSWORD: '${DB_PASSWORD:?Configure DB_PASSWORD in the local .env first}'
|
|
ports:
|
|
- '127.0.0.1:55441:55441'
|
|
volumes:
|
|
- postgres-qa:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test:
|
|
[
|
|
'CMD-SHELL',
|
|
'pg_isready -p 55441 -U investmoz_test -d investmoz_local_test',
|
|
]
|
|
interval: 5s
|
|
timeout: 5s
|
|
start_period: 600s
|
|
retries: 20
|
|
volumes:
|
|
postgres-qa:
|