diff --git a/etc/systemd/system/drone.service b/etc/systemd/system/drone.service index 942e797..8b035aa 100644 --- a/etc/systemd/system/drone.service +++ b/etc/systemd/system/drone.service @@ -8,7 +8,8 @@ Upholds=nginx.service docker.service Slice=drone.slice Delegate=no Restart=always -RestartSec=5 +RestartSec=15s + 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