19 lines
604 B
Django/Jinja
19 lines
604 B
Django/Jinja
[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 }}
|
|
BindPaths={{ host.data.unix_home }}/storage:/photoprism/storage {{ host.data.unix_home }}/originals:/photoprism/originals {{ host.data.unix_home }}/import:/photoprism/import
|
|
BindReadOnlyPaths=/etc/resolv.conf
|
|
ExecStart=/photoprism/bin/photoprism start
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|