Ver 0.1
This commit is contained in:
18
templates/immich-postgres.service.j2
Normal file
18
templates/immich-postgres.service.j2
Normal 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
|
||||
Reference in New Issue
Block a user