Ref: https://docs.drone.io/installation/github/single-machine/
Set callback URL in github http://your-drone-ci-host:port/login
| version: "3.5" | |
| services: | |
| drone-server: | |
| image: drone/drone | |
| ports: | |
| - 8080:80 | |
| # - 443:443 | |
| volumes: | |
| - ./drone:/var/lib/drone | |
| environment: | |
| - DRONE_GITHUB_SERVER=https://github.com | |
| - DRONE_GITHUB_CLIENT_ID=${github_client_id} | |
| - DRONE_GITHUB_CLIENT_SECRET=${github_client_secret} | |
| - DRONE_AGENTS_ENABLED=true | |
| - DRONE_RPC_SECRET=${drone_rpc_secret} | |
| drone-agent: | |
| image: drone/agent | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| depends_on: | |
| - drone-server | |
| environment: | |
| - DRONE_RPC_SERVER=http://drone-server | |
| - DRONE_RPC_SECRET=${drone_rpc_secret} |
| #!/bin/bash | |
| # Run `source github_env.sh` before `docker-compose up -d` command | |
| export github_client_id="your-github-client-id" | |
| export github_client_secret="your-github-client-secret" | |
| export drone_rpc_secret="your-rpc-secret" |