mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-19 21:13:39 +00:00
5a00a6b32f
* Update drone to v1.x * Add GitHub Actions
40 lines
1011 B
Go
40 lines
1011 B
Go
version: '3'
|
|
|
|
services:
|
|
|
|
drone-server:
|
|
image: drone/drone:1
|
|
ports:
|
|
- 443:443
|
|
- 80:80
|
|
volumes:
|
|
- drone-data:/data:rw
|
|
- ./ssl:/etc/certs
|
|
restart: always
|
|
environment:
|
|
- DRONE_AGENTS_ENABLED=true
|
|
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST:-drone.domain.com}
|
|
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO:-https}
|
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET:-secret}
|
|
- DRONE_GITHUB_SERVER=https://github.com
|
|
- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
|
|
- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
|
|
|
|
drone-agent:
|
|
image: drone/agent:1
|
|
restart: always
|
|
depends_on:
|
|
- drone-server
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:rw
|
|
environment:
|
|
- DRONE_RPC_PROTO=http
|
|
- DRONE_RPC_HOST=drone-server
|
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET:-secret}
|
|
- DRONE_RUNNER_NAME=${HOSTNAME:-demo}
|
|
- DRONE_RUNNER_CAPACITY=2
|
|
dns: 114.114.114.114
|
|
|
|
volumes:
|
|
drone-data:
|