Skip to content

Instantly share code, notes, and snippets.

@codehimanshu
Last active June 28, 2020 11:06
Show Gist options
  • Save codehimanshu/495c47b0c995086867fd3d76c05d2c36 to your computer and use it in GitHub Desktop.
Save codehimanshu/495c47b0c995086867fd3d76c05d2c36 to your computer and use it in GitHub Desktop.
Drone Docker Setup
version: '3'
services:
drone-server:
image: drone/drone:1
container_name: drone
ports:
- "80:80"
restart: always
environment:
DRONE_ORGS: your_github_org
DRONE_RUNNER_CAPACITY: 4
DRONE_AGENTS_ENABLED: "true"
DRONE_GITHUB_SERVER: https://github.com
DRONE_GITHUB_CLIENT_ID: *******
DRONE_GITHUB_CLIENT_SECRET: *******
DRONE_DEBUG: "true"
DRONE_SECRET: "*******"
DRONE_DATABASE_DRIVER: postgres
DRONE_DATABASE_DATASOURCE: "postgres://*******:*******@*******:5432/*******"
DRONE_RPC_SECRET: "*******"
DRONE_ADMIN: your_github_username
DRONE_GITHUB: "true"
DRONE_ADMIN_ALL: "false"
DRONE_OPEN: "false"
DRONE_SERVER_HOST: drone.*******.co
DRONE_SERVER_PROTO: https
DRONE_USER_FILTER: your_github_org
volumes:
- ./drone-data:/var/lib/drone/
networks:
- drone
drone-agent:
image: drone/drone-runner-docker:1
depends_on:
- drone-server
networks:
- drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DRONE_DEBUG: "false"
DRONE_SECRET: "*******"
DRONE_RPC_SECRET: "*******"
DRONE_RUNNER_NAME: drone.*******.co
DRONE_RPC_PROTO: https
DRONE_RPC_HOST: drone.*******.co
DRONE_RUNNER_CAPACITY: 4
networks:
drone:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment