Skip to content

Instantly share code, notes, and snippets.

@chiehpower
Created May 15, 2022 07:11
Show Gist options
  • Save chiehpower/de7e0d59571ba0efa5eb73b9db7353ff to your computer and use it in GitHub Desktop.
Save chiehpower/de7e0d59571ba0efa5eb73b9db7353ff to your computer and use it in GitHub Desktop.
Drone for Server - Medium
version: '2'
services:
drone-server:
image: drone/drone:2
container_name: cicd-server
ports:
- 8090:80
extra_hosts:
- "10.1.2.102:10.1.2.102"
volumes:
- /var/lib/drone:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_GITLAB_SERVER=http://10.1.2.84:5555/
- DRONE_GITLAB_CLIENT_ID=67116d65415a8802d9f6feac7dc7
- DRONE_GITLAB_CLIENT_SECRET=1c519747c23289f25631a8bfb9fafddf161
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_RPC_SECRET=super-duper-secret
- DRONE_SERVER_HOST=10.1.2.102:8090
- DRONE_SERVER_PROTO=http
- DRONE_USER_CREATE=username:chieh,admin:true
drone-runner:
image: drone/drone-runner-docker:1
container_name: cicd-runner
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=10.1.2.102:8090
- DRONE_RPC_SECRET=super-duper-secret
- DRONE_RUNNER_NAME=my-first-runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment