Files
structure/docker-compose.postgres.yml.example

28 lines
577 B
Plaintext
Raw Permalink Normal View History

services:
dbpg:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
volumes:
- databasepg:/var/lib/postgresql/data
- ./hostfiles:/hostfiles
ports:
- "5432:5432"
db-project:
image: postgis/postgis:14-3.3
environment:
- POSTGRES_DB=project_db
- POSTGRES_USER=project_db_user
- POSTGRES_PASSWORD=project_db_password
ports:
- "5434:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
databasepg: