19 lines
526 B
Django/Jinja
19 lines
526 B
Django/Jinja
[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
|