Why: Primary OLTP database and CDC source for Debezium.
core,airflow
- None
- Start service:
docker compose --profile core up -d postgres
- Port:
5432 - Credentials from
.env:- Admin:
POSTGRES_USER/POSTGRES_PASSWORD - CDC role (read-only):
POSTGRES_CDC_USER/POSTGRES_CDC_PASSWORD
- Admin:
- Initializes the
demodatabase with OLTP tables on first run. - Applies logical replication settings (
wal_level=logical, replication slots, WAL keep size) on every boot. - Creates and grants a CDC role so Debezium can snapshot and stream tables without superuser access.
- Maintains the
demo_publicationlogical publication over every table indemo.publicso connectors can reuse it. - Data persists in the
pg-datavolume; remove it to reset all state.