23 lines
620 B
YAML
23 lines
620 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: govoplan-core-postgres-dev
|
|
environment:
|
|
POSTGRES_DB: ${GOVOPLAN_POSTGRES_DB:-govoplan}
|
|
POSTGRES_USER: ${GOVOPLAN_POSTGRES_USER:-govoplan}
|
|
POSTGRES_PASSWORD: ${GOVOPLAN_POSTGRES_PASSWORD:-govoplan-dev}
|
|
ports:
|
|
- "127.0.0.1:${GOVOPLAN_POSTGRES_PORT:-55432}:5432"
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- pg_isready -U "$${POSTGRES_USER}" -d "$${POSTGRES_DB}"
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 20
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres-data:
|