Initial commit
This commit is contained in:
26
quadlets/synapse/synapse-database.container
Normal file
26
quadlets/synapse/synapse-database.container
Normal file
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Synapse database container
|
||||
|
||||
[Container]
|
||||
AutoUpdate=registry
|
||||
ContainerName=synapse-database
|
||||
Environment=POSTGRES_USER=synapse
|
||||
Environment=POSTGRES_DB=synapse
|
||||
Environment=POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||
Environment=TZ=Europe/Zurich
|
||||
HealthCmd=pg_isready -U synapse
|
||||
HealthInterval=30s
|
||||
HealthTimeout=10s
|
||||
HealthRetries=5
|
||||
Image=docker.io/postgres:18
|
||||
Pod=synapse.pod
|
||||
Secret=database-password,type=env,target=POSTGRES_PASSWORD
|
||||
StartWithPod=true
|
||||
Timezone=Europe/Zurich
|
||||
Volume=synapse-database.volume:/var/lib/postgresql
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user