blob: 8b1f806452c34d97c687cb152578abc1f7eed936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
[Unit]
Description=Immich microservices
Documentation=https://github.com/immich-app/immich
Requires=postgresql.service
Requires=immich-server.service
After=network.target
Wants=network-online.target
After=network-online.target
[Service]
User=immich
Group=immich
Type=simple
Restart=on-failure
EnvironmentFile=/etc/immich.conf
Environment=NODE_ENV=production
SyslogIdentifier=immich-microservices
ExecStart=node dist/main microservices
#needed for vaapi acceleration
#PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictNamespaces=yes
SystemCallArchitectures=native
AmbientCapabilities=
CapabilityBoundingSet=
NoNewPrivileges=yes
WorkingDirectory=/usr/lib/immich/app/server
ReadWritePaths=/tmp /var/tmp /var/lib/immich/upload
[Install]
WantedBy=multi-user.target
|