Skip to content

Instantly share code, notes, and snippets.

@ibuildthecloud
Created July 17, 2015 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibuildthecloud/60620759c3648c2186f6 to your computer and use it in GitHub Desktop.
Save ibuildthecloud/60620759c3648c2186f6 to your computer and use it in GitHub Desktop.
Drone Compose
drone-leader-02:
ports:
- 80:80/tcp
restart: 'no'
environment:
WORKER_DNS: followers
WORKERS: '2'
DRONE_GITHUB_CLIENT: XXXX
DRONE_GITHUB_SECRET: XXXX
DRONE_DATABASE_DRIVER: mysql
DRONE_DATABASE_DATASOURCE: XXXXX
DRONE_SMTP_HOST: XXXX
DRONE_SMTP_PORT: XXXX
DRONE_SMTP_USER: XXXX
DRONE_SMTP_PASS: XXXX
DRONE_SMTP_FROM: XXXX
DRONE_GITHUB_OPEN: 'false'
labels:
io.rancher.scheduler.affinity:host_label: io.rancher.drone.role=leader
tty: true
image: rancher/drone-sd:v0.1.0
links:
- drone-agent:followers
stdin_open: true
drone-agent:
labels:
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label: io.rancher.drone.role=follower
tty: true
image: rancher/socat-docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
stdin_open: true
volume-maintenance-01:
labels:
io.rancher.scheduler.global: 'true'
tty: true
image: cloudnautique/volume-cleanup
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
stdin_open: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment