This commit is contained in:
2025-12-29 19:11:06 +01:00
parent 27bbd9621a
commit b902142c4b
10 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
[Unit]
Description=Immich Postgres Container
After=network-online.target
Wants=network-online.target
[Service]
Restart=always
ExecStart=/usr/bin/podman run --rm --name immich-postgres \
--network {{ immich_network_name }} \
--env-file {{ immich_postgres_env_path }} \
-v {{ immich_db_data_location }}:/var/lib/postgresql/data:Z \
{{ immich_postgres_image }}
ExecStop=/usr/bin/podman stop -t 10 immich-postgres
ExecStopPost=/usr/bin/podman rm -f immich-postgres
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target