Skip to content

Instantly share code, notes, and snippets.

@anson-vandoren
Created May 21, 2019 01:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anson-vandoren/d1abca7d5bf56d957e86bca93639ca2c to your computer and use it in GitHub Desktop.
Save anson-vandoren/d1abca7d5bf56d957e86bca93639ca2c to your computer and use it in GitHub Desktop.
Drone.io (v1.0) docker-compose
version: '3.7'
services:
drone-server:
container_name: drone_server
image: drone/drone:1
ports:
- 8080:80
volumes:
- /var/lib/drone:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_GITHUB_SERVER=https://github.com
- DRONE_GITHUB_CLIENT_ID=<enter github client id here>
- DRONE_GITHUB_CLIENT_SECRET=<enter github client secret here>
- DRONE_AGENTS_ENABLED=true
- DRONE_RPC_SECRET=<create a secret key>
- DRONE_SERVER_HOST=<url for the drone server>
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=true
- DRONE_USER_CREATE=username:<your github username>,admin:true
- DRONE_LOGS_TRACE=true
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_COLOR=true
drone-agent:
container_name: drone_agent
image: drone/agent:1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=<same secret as in the drone-server config above>
- DRONE_RUNNER_CAPACITY=1
- DRONE_RUNNER_NAME=<creative name for your build agent>
- DRONE_LOGS_TRACE=true
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_COLOR=true
@hnykda
Copy link

hnykda commented Nov 1, 2019

Thanks!

@ajochope
Copy link

thanks

Copy link

ghost commented Jan 16, 2022

Just what I needed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment