# 配合Gitee使用
# 安装
创建Docker-compose.yml
version: '3'
services:
drone-server:
restart: always
image: drone/drone:2
ports:
- "10000:80" # 宿主机端口:容器内端口
volumes:
- ./data/drone/:/var/lib/drone/
- ./data/data/:/data/
environment:
- DRONE_GITEE_SERVER=https://gitee.com
- DRONE_GITEE_CLIENT_ID=Gitee三方应用ID
- DRONE_GITEE_CLIENT_SECRET=Gitee三方应用secret
- DRONE_GITEE_API_SERVER=https://gitee.com/api/v5
- DRONE_SERVER_HOST=https://drone.lidong.xin
- DRONE_SERVER_PROTO=https
- DRONE_RPC_SECRET=drone和runner的通信密钥
drone-runner-docker:
restart: always
image: drone/drone-runner-docker:1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=drone和runner的通信密钥
# 视频教程
https://www.bilibili.com/video/BV1aG411p7cx (opens new window)
← 简介