Ver 0.1
This commit is contained in:
18
templates/immich-machine-learning.service.j2
Normal file
18
templates/immich-machine-learning.service.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Immich Machine Learning Container
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/podman run --rm --name immich-machine-learning \
|
||||
--network {{ immich_network_name }} \
|
||||
--user {{ immich_container_uid }}:{{ immich_container_gid }} \
|
||||
-v {{ immich_model_cache_dir }}:/cache:Z \
|
||||
{{ immich_ml_image }}
|
||||
ExecStop=/usr/bin/podman stop -t 10 immich-machine-learning
|
||||
ExecStopPost=/usr/bin/podman rm -f immich-machine-learning
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user