Add restart param to drone

This commit is contained in:
Marko Korhonen 2022-03-29 23:05:30 +03:00
parent f5d42129dd
commit 1cc2a0fec8

View File

@ -24,6 +24,7 @@ labels = [
[services.drone] [services.drone]
image = "drone/drone:2" image = "drone/drone:2"
container_name = "drone" container_name = "drone"
restart = "unless-stopped"
volumes = ["/docker/drone:/data"] volumes = ["/docker/drone:/data"]
environment = [ environment = [
"DRONE_GITEA_SERVER=https://git.korhonen.cc", "DRONE_GITEA_SERVER=https://git.korhonen.cc",
@ -52,6 +53,7 @@ labels = [
[services.drone-runner] [services.drone-runner]
image = "drone/drone-runner-docker:1" image = "drone/drone-runner-docker:1"
container_name = "drone-runner" container_name = "drone-runner"
restart = "unless-stopped"
volumes = ["/var/run/docker.sock:/var/run/docker.sock"] volumes = ["/var/run/docker.sock:/var/run/docker.sock"]
environment = [ environment = [
"DRONE_RPC_HOST=drone.korhonen.cc", "DRONE_RPC_HOST=drone.korhonen.cc",