eventhub/docker-compose.yml

24 lines
696 B
YAML

services:
postgres:
# The Flyway migrations enable both TimescaleDB and PostGIS. The TimescaleDB HA
# image is used for local development because it includes these PostgreSQL
# extensions, unlike the plain postgres image.
image: timescale/timescaledb-ha:pg16
container_name: eventhub-postgres
environment:
POSTGRES_DB: eventhub
POSTGRES_USER: eventhub
POSTGRES_PASSWORD: eventhub
ports:
- "5432:5432"
volumes:
- eventhub-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U eventhub -d eventhub"]
interval: 5s
timeout: 5s
retries: 20
volumes:
eventhub-postgres-data: