add restart policy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-06-16 22:03:44 +02:00
parent 843cebb874
commit 0b01e68655
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 7 additions and 5 deletions

View File

@ -1,16 +1,17 @@
---
droneci_runner_docker_container_name: droneci_runner_docker
droneci_runner_docker_version: latest
droneci_runner_docker_image: "drone/drone-runner-docker:{{ droneci_runner_docker_version }}"
droneci_runner_docker_capacity: 2
droneci_runner_docker_server: droneci
droneci_runner_docker_secret: myveryownsecret
droneci_runner_docker_service_directory: /var/lib/docker/services/droneci_runner_docker
droneci_runner_docker_socket_path: /var/run/docker.sock
droneci_runner_docker_container_name: droneci_runner_docker
droneci_runner_docker_restart_policy: always
droneci_runner_docker_service_stopped: False
droneci_runner_docker_capacity: 2
droneci_runner_docker_server: droneci
droneci_runner_docker_secret: myveryownsecret
# @var droneci_runner_docker_memory_limit:example: $ "512m"
# @var droneci_runner_docker_memory_limit: $ "_unset_"
# @var droneci_runner_docker_memory_reservation:example: $ "256m"

View File

@ -6,6 +6,7 @@ services:
droneci_runner_docker:
container_name: {{ droneci_runner_docker_container_name }}
image: {{ droneci_runner_docker_image }}
restart: {{ droneci_runner_docker_restart_policy }}
volumes:
- {{ droneci_runner_docker_socket_path }}:/var/run/docker.sock
{% if droneci_runner_docker_networks_applied | default([]) %}