This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-photoprism/templates/photoprism.service.j2

20 lines
625 B
Text
Raw Normal View History

2021-09-26 12:25:33 +00:00
[Unit]
Description=photoprism
After=network.target
[Service]
Type=simple
User={{ host.data.unix_user }}
Group={{ host.data.unix_group }}
StateDirectory={{ host.data.unix_user }}
EnvironmentFile={{ host.data.systemd_env }}
WorkingDirectory=/photoprism
RootDirectory={{ host.data.undocker_dst }}
2021-09-27 08:21:26 +00:00
BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/photoprism/import
2021-09-27 08:37:30 +00:00
BindReadOnlyPaths=/etc/resolv.conf /proc
2021-09-26 12:25:33 +00:00
ExecStart=/photoprism/bin/photoprism start
Restart=on-failure
[Install]
WantedBy=multi-user.target