mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-01 12:13:38 +00:00
36 lines
832 B
YAML
36 lines
832 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
|
||
|
drone-server:
|
||
|
image: drone/drone:0.8-alpine
|
||
|
ports:
|
||
|
- 443:443
|
||
|
# - "${PRO_PUBLIC_IP}:8000:8000"
|
||
|
volumes:
|
||
|
- drone-data:/var/lib/drone/:rw
|
||
|
# - ${SSL_PATH}:/etc/certs
|
||
|
restart: always
|
||
|
environment:
|
||
|
- DRONE_SECRET=drone
|
||
|
- DRONE_OPEN=false
|
||
|
- DRONE_ADMIN=GITHUB_SERNAME
|
||
|
- DRONE_HOST=https://drone.yeasy.com
|
||
|
- DRONE_GITHUB=true
|
||
|
- DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT_PRO}
|
||
|
- DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET_PRO}
|
||
|
|
||
|
drone-agent:
|
||
|
image: drone/agent:0.8-alpine
|
||
|
restart: always
|
||
|
depends_on:
|
||
|
- drone-server
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||
|
environment:
|
||
|
- DRONE_SECRET=drone
|
||
|
- DRONE_SERVER=drone-server:9000
|
||
|
dns: 114.114.114.114
|
||
|
|
||
|
volumes:
|
||
|
drone-data:
|