Skip to content

Instantly share code, notes, and snippets.

@SathyaBhat
Created August 30, 2018 13:24
Show Gist options
  • Save SathyaBhat/4a0dc8c3dcae235f0db5a12eba6c3569 to your computer and use it in GitHub Desktop.
Save SathyaBhat/4a0dc8c3dcae235f0db5a12eba6c3569 to your computer and use it in GitHub Desktop.
Docker compose for drone
version: '3.5'
services:
drone-server:
image: drone/drone:0.8
ports:
- 80:8000
- 9000:9000
volumes:
- dronedata:/var/lib/drone
restart: always
environment:
- DRONE_OPEN=true
- DRONE_ADMIN=mkr
- DRONE_HOST=https://drone-server
- DRONE_GITHUB=true
- DRONE_GITHUB_CLIENT=
- DRONE_GITHUB_SECRET=
- DRONE_SECRET=
drone-agent:
image: drone/agent:0.8
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=
volumes:
dronedata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment