[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