This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
drone-docker-runner.autonom.../compose.yml

56 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2020-06-23 10:40:03 +00:00
---
version: "3.8"
services:
drone-docker-runner:
image: "drone/drone-runner-docker:1.5"
2020-06-23 10:40:03 +00:00
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
configs:
- source: drone_runner_env
target: .env
secrets:
- rpc_secret
environment:
- DRONE_RPC_HOST=drone.autonomic.zone
- DRONE_RPC_PROTO=https
- DRONE_RUNNER_CAPACITY=4
- DRONE_RUNNER_NAME=drone-docker-runner
- DRONE_RUNNER_VOLUMES=/var/run/docker.sock:/var/run/docker.sock
networks:
- proxy
2020-06-25 09:22:36 +00:00
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:3000/healthz"]
interval: 10s
timeout: 10s
retries: 10
start_period: 10s
2020-06-23 10:40:03 +00:00
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.routers.drone-docker-runner.rule=Host(`drone-docker-runner.autonomic.zone`)"
- "traefik.http.routers.drone-docker-runner.entrypoints=web-secure"
- "traefik.http.services.drone-docker-runner.loadbalancer.server.port=3000"
- "traefik.http.routers.drone-docker-runner.tls.certresolver=production"
networks:
proxy:
external: true
configs:
drone_runner_env:
name: drone_docker_runner_env_v1
file: env.tmpl
template_driver: golang
secrets:
rpc_secret:
name: drone_docker_runner_rpc_secret_v1
external: true
volumes:
data: