Skip to content

Commit 37dea13

Browse files
committed
Fixed systemd.service template
1 parent 0acdf8c commit 37dea13

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

systemd.service

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
[Unit]
2-
Description=hipanel.VENDOR.com service in Docker container
3-
Requires=docker.service
4-
Requires=nginx-proxy-REAL_IP.service
5-
After=nginx-proxy-REAL_IP.service
2+
Description={HOST} service in Docker container
3+
Requires=nginx-proxy-{REAL_IP}.service
4+
After=nginx-proxy-{REAL_IP}.service
65

76
[Service]
87
Type=simple
9-
WorkingDirectory=/home/sol/prj/VENDOR/hipanel.VENDOR.com
8+
WorkingDirectory={DIR}
109
Restart=always
1110
ExecStart=/usr/local/bin/docker-compose up
1211
ExecStop=/usr/local/bin/docker-compose stop
1312

1413
[Install]
15-
WantedBy=multi-user.target
16-
WantedBy=nginx-proxy-REAL_IP.service
14+
WantedBy=nginx-proxy-{REAL_IP}.service

0 commit comments

Comments
 (0)