postgres-service/docker-compose.override.yaml

26 lines
725 B
YAML

# This override file is for local development and is automatically loaded when running docker-compose up
# without specifying a different file
services:
postgres:
ports:
- "5432:5432"
volumes:
- ./config/postgres-dev.conf:/etc/postgresql/postgresql.conf
environment:
POSTGRES_PASSWORD: postgres_dev_password
command: postgres -c config_file=/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 3s
retries: 3
start_period: 10s
pgadmin:
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: dev@example.com
PGADMIN_DEFAULT_PASSWORD: pgadmin_dev_password