2022-01-19 15:07:02 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
# https://docs.drone.io/runner/docker/installation/linux/
|
|
|
|
|
|
|
|
services:
|
|
|
|
drone-runner:
|
|
|
|
container_name: ${DRONE_RUNNER_CONTAINER_NAME}
|
2022-02-22 15:55:18 +01:00
|
|
|
image: ${DRONE_RUNNER_IMAGE:-drone/drone-runner-docker:1.8.0}
|
2022-01-19 15:07:02 +01:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
# https://docs.drone.io/runner/docker/configuration/reference/drone-rpc-host/
|
|
|
|
DRONE_RPC_HOST: ${DRONE_RPC_HOST:?err}
|
|
|
|
# https://docs.drone.io/runner/docker/configuration/reference/drone-rpc-proto/
|
|
|
|
DRONE_RPC_PROTO: ${DRONE_RPC_PROTO:-https}
|
|
|
|
# https://docs.drone.io/runner/docker/configuration/reference/drone-rpc-secret/
|
|
|
|
DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?err}
|
|
|
|
# https://docs.drone.io/runner/docker/configuration/reference/drone-runner-capacity/
|
|
|
|
DRONE_RUNNER_CAPACITY: ${DRONE_RUNNER_CAPACITY:-2}
|
|
|
|
# https://docs.drone.io/runner/docker/configuration/reference/drone-runner-name/
|
|
|
|
DRONE_RUNNER_NAME: ${DRONE_RUNNER_NAME}
|