Adding drone composer
This commit is contained in:
commit
6269134860
3 changed files with 48 additions and 0 deletions
12
.env.example
Normal file
12
.env.example
Normal file
|
@ -0,0 +1,12 @@
|
|||
DRONE_HOST=drone.domain.com
|
||||
DRONE_PROTO=https
|
||||
DRONE_PORT=80
|
||||
DRONE_COOKIE_SECRET=84e7c1aca2c4825d
|
||||
DRONE_TIMEZONE=Europe/London
|
||||
DRONE_TLS_AUTOCERT=false
|
||||
DRONE_RPC_SECRET=3d10100908a29d077dc
|
||||
|
||||
GITEA_HOST=https://git.domain.com
|
||||
GITEA_CLIENT_ID=d1dd196fd454
|
||||
GITEA_CLIENT_SECRET=thKCuaAN6yaOdMk99le
|
||||
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env
|
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
drone-server:
|
||||
image: drone/drone:2
|
||||
ports:
|
||||
- ${DRONE_PORT}:80
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/lib/drone:/data
|
||||
environment:
|
||||
- DRONE_GITEA_SERVER=${GITEA_HOST}
|
||||
- DRONE_GITEA_CLIENT_ID=${GITEA_CLIENT_ID}
|
||||
- DRONE_GITEA_CLIENT_SECRET=${GITEA_CLIENT_SECRET}
|
||||
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
- DRONE_SERVER_HOST=${DRONE_HOST}
|
||||
- DRONE_SERVER_PROTO=${DRONE_PROTO}
|
||||
- DRONE_TLS_AUTOCERT=${DRONE_TLS_AUTOCERT}
|
||||
- DRONE_USER_CREATE=username:axel,admin:true
|
||||
- DRONE_COOKIE_SECRET=${DRONE_COOKIE_SECRET}
|
||||
- DRONE_COOKIE_TIMEOUT=72h
|
||||
- TZ=${DRONE_TIMEZONE}
|
||||
|
||||
drone-runner:
|
||||
image: drone/drone-runner-docker:1
|
||||
ports:
|
||||
- 3000:3000
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- DRONE_RPC_PROTO=${DRONE_PROTO}
|
||||
- DRONE_RPC_HOST=${DRONE_HOST}
|
||||
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||||
- DRONE_RUNNER_CAPACITY=3
|
Loading…
Add table
Reference in a new issue