initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=CDC demo Postgres
|
||||
|
||||
[Container]
|
||||
Image=docker.io/library/postgres:18-alpine
|
||||
ContainerName=cdc-postgres
|
||||
Network=cdc.network
|
||||
PublishPort=5453:5432
|
||||
Environment=POSTGRES_USER=postgres
|
||||
Environment=POSTGRES_PASSWORD=postgres
|
||||
Environment=POSTGRES_DB=postgres
|
||||
Volume=cdc-postgres-data.volume:/var/lib/postgresql
|
||||
Volume=%h/.local/share/live-inventory-cdc-demo/postgres/init:/docker-entrypoint-initdb.d:ro,Z
|
||||
Exec=postgres -c wal_level=logical -c max_wal_senders=10 -c max_replication_slots=10
|
||||
HealthCmd=pg_isready -U postgres -d postgres
|
||||
HealthInterval=5s
|
||||
HealthTimeout=5s
|
||||
HealthRetries=20
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
TimeoutStartSec=120
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user