Drone 是自动化软件测试和交付工具。
部署
version: '1'
services:
drone-server:
image: drone/drone:1.9
ports:
- 80:80
- 443:443
volumes:
- /data/drone-data:/var/lib/drone/
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./drone.env
restart: always
environment:
- DRONE_AGENTS_ENABLED=true
- DRONE_SERVER_HOST=drone.xiexianbin.cn
- DRONE_SERVER_PROTO=http
- DRONE_GITLAB_SERVER=http://exam-gitlab.xiexianbin.cn
# Variables below set via drone.env file
# - DRONE_USER_CREATE=
# - DRONE_USER_FILTER=
# - DRONE_GITLAB_CLIENT_ID=
# - DRONE_GITLAB_CLIENT_SECRET=
# - DRONE_RPC_SECRET=
# - DRONE_GIT_ALWAYS_AUTH=
drone-agent:
image: drone/agent:1.2.1
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ./drone.env
environment:
- DRONE_RPC_SERVER=drone-server:80
# Variables below set via drone.env file
# - DRONE_RPC_SECRET=
DRONE_USER_CREATE=admin
DRONE_GITLAB_CLIENT_ID=xxx
DRONE_GITLAB_CLIENT_SECRET=xxx
DRONE_RPC_SECRET=xxx
DRONE_GIT_ALWAYS_AUTH=false