Add PostgreSQL HA OCF agent modular baseline
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=PostgreSQL HA Maintenance Container
|
||||
|
||||
[Container]
|
||||
ContainerName=postgres
|
||||
Image=docker.io/library/postgres@sha256:4ef4dbc939d61acea57712655ddb4b4ab27419c913f94cca0cd57cb3ea3c2280
|
||||
|
||||
Entrypoint=/usr/local/sbin/postgres-ha-bootstrap
|
||||
Exec=sleep infinity
|
||||
|
||||
RunInit=true
|
||||
StopSignal=SIGTERM
|
||||
StopTimeout=5
|
||||
|
||||
Network=host
|
||||
|
||||
Volume=postgres-bootstrap-test:/var/lib/postgresql:Z
|
||||
Volume=/home/david/.local/libexec/postgres-ha-bootstrap:/usr/local/sbin/postgres-ha-bootstrap:ro,Z
|
||||
Volume=/home/david/.config/postgres-ha/secrets:/run/secrets/postgres-ha:ro,Z
|
||||
|
||||
EnvironmentFile=/home/david/.config/postgres-ha/postgres.env
|
||||
|
||||
[Service]
|
||||
SuccessExitStatus=143
|
||||
Restart=on-abnormal
|
||||
TimeoutStartSec=0
|
||||
Reference in New Issue
Block a user