Created
August 25, 2025 07:24
-
-
Save sknavilehal/50b13c97de6270c0835e32c156c512cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| services: | |
| drone-server: | |
| image: drone/drone:2 | |
| container_name: drone-server | |
| environment: | |
| - DRONE_GITHUB_CLIENT_ID=oauth-client-id | |
| - DRONE_GITHUB_CLIENT_SECRET=oauth-client-secret | |
| - DRONE_RPC_SECRET=your-rpc-secret | |
| - DRONE_SERVER_HOST=ip-or-hostname:port | |
| - DRONE_SERVER_PROTO=http | |
| - DRONE_GITHUB_SERVER=https://github.com | |
| - DRONE_GITHUB_CLIENT_SCOPE=repo,repo:status,user:email,read:org | |
| - DRONE_USER_CREATE=username:your-github-username,admin:true | |
| - DRONE_USER_FILTER=your-github-username | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - drone-data:/data # For data persistence (SQLite by default; consider PostgreSQL for production) | |
| restart: unless-stopped | |
| drone-runner: | |
| image: drone/drone-runner-docker:1 | |
| container_name: drone-runner | |
| environment: | |
| - DRONE_RPC_HOST=drone-server | |
| - DRONE_RPC_PROTO=http | |
| - DRONE_RPC_SECRET=your-rpc-secret | |
| - DRONE_RUNNER_CAPACITY=2 # Number of concurrent pipelines (adjust as needed) | |
| - DRONE_RUNNER_NAME=my-drone-runner | |
| ports: | |
| - "3000:3000" # Runner listens on port 3000 internally | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock # Required for running Docker-in-Docker pipelines | |
| restart: unless-stopped | |
| depends_on: | |
| - drone-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment