Created
November 14, 2019 05:51
-
-
Save codehimanshu/c144549969591012c9fbe99483f00717 to your computer and use it in GitHub Desktop.
Drone Docker Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
drone-server: | |
image: drone/drone:1 | |
container_name: drone | |
ports: | |
- "80:80" | |
restart: always | |
environment: | |
DRONE_ORGS: ******* | |
DRONE_RUNNER_CAPACITY: 20 | |
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: ******* | |
DRONE_GITHUB: "true" | |
DRONE_ADMIN_ALL: "false" | |
DRONE_OPEN: "true" | |
DRONE_SERVER_HOST: drone.*******.co | |
DRONE_SERVER_PROTO: https | |
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: "true" | |
DRONE_RPC_SECRET: "*******" | |
DRONE_RUNNER_NAME: drone.*******.co | |
DRONE_RPC_PROTO: https | |
DRONE_RPC_HOST: drone.*******.co | |
DRONE_RUNNER_CAPACITY: 20 | |
networks: | |
drone: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment