systemd: use Environment for DRYness
This commit is contained in:
parent
ab4e6375e0
commit
ea51959b59
@ -8,8 +8,9 @@ Slice=drone.slice
|
||||
Delegate=yes
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
ExecStart=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml up --remove-orphans
|
||||
ExecStop=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml stop
|
||||
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
||||
ExecStart=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} up --remove-orphans
|
||||
ExecStop=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} stop
|
||||
|
||||
Nice=-14
|
||||
IOSchedulingClass=1
|
||||
|
Loading…
Reference in New Issue
Block a user