docker安装drone client进行ci/cd
使用docker部署DroneCI client
docker-compose:
version: "3"
services:
drone_runner:
image: drone/drone-runner-docker:latest
container_name: drone_runner
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=xxx
- DRONE_RPC_SECRET=xxx
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=xxx
volumes:
- /mnt/user/ide_repo:/mnt/user/ide_repo
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 64578:3000
restart: unless-stopped