systemd: use Environment for DRYness

This commit is contained in:
surtur 2022-09-28 16:28:38 +02:00
parent ab4e6375e0
commit ea51959b59
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

View File

@ -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