Skip to content

Instantly share code, notes, and snippets.

@kontext-e
Created April 11, 2018 14:24
Show Gist options
  • Save kontext-e/637708fffb8469ab0bccc50415b14773 to your computer and use it in GitHub Desktop.
Save kontext-e/637708fffb8469ab0bccc50415b14773 to your computer and use it in GitHub Desktop.
docker-compose file for drone.io with Gogs
version: '2'
services:
drone-server:
image: drone/drone:0.8
ports:
- 8000:8000
- 9000
volumes:
- /home/drone/var:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=true
- DRONE_HOST=http://10.20.30.40
- DRONE_ADMIN=jn
- DRONE_GOGS=true
- DRONE_GOGS_URL=http://10.20.30.40:3000
- DRONE_GOGS_SKIP_VERIFY=true
- DRONE_SECRET=random_string
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=random_string
- DRONE_MAX_PROCS=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment