33 lines
840 B
YAML
33 lines
840 B
YAML
# Deploy drone CI system
|
|
|
|
services:
|
|
drone:
|
|
image: drone/drone:2
|
|
environment:
|
|
- DRONE_GITEA_SERVER=http://gitea.local
|
|
- DRONE_GITEA_CLIENT_ID=put_the_real_client_id_here
|
|
- DRONE_GITEA_CLIENT_SECRET=put_the_real_secret_here
|
|
- DRONE_RPC_SECRET=super-duper-secret
|
|
- DRONE_SERVER_HOST=gitea.local # TODO: make this more generic
|
|
- DRONE_SERVER_PROTO=http
|
|
restart: always
|
|
volumes:
|
|
- ./drone:/data
|
|
ports:
|
|
- 80
|
|
- 443
|
|
|
|
drone-runner:
|
|
image: drone/drone-runner-docker:1
|
|
environment:
|
|
- DRONE_RPC_PROTO=http
|
|
- DRONE_RPC_HOST=drone
|
|
- DRONE_RPC_SECRET=super-duper-secret
|
|
- DRONE_RUNNER_CAPACITY=2
|
|
- DRONE_RUNNER_NAME=drone-runner-1
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
ports:
|
|
- 3000
|