Add initial runner configuration
This commit is contained in:
commit
a5bc170e7a
4
.env.sample
Normal file
4
.env.sample
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
RPC_PROTO=https
|
||||||
|
RPC_HOST=drone.halia.dev
|
||||||
|
RPC_SECRET=
|
||||||
|
RUNNER_CAPACITY=1
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.env
|
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
drone-runner:
|
||||||
|
container_name: drone-runner
|
||||||
|
image: drone/drone-runner-docker:1
|
||||||
|
environment:
|
||||||
|
- DRONE_RPC_PROTO={{RPC_PROTO}}
|
||||||
|
- DRONE_RPC_HOST={{RPC_HOST}}
|
||||||
|
- DRONE_RPC_SECRET={{RPC_SECRET}}
|
||||||
|
- DRONE_RUNNER_CAPACITY={{RUNNER_CAPACITY}}
|
||||||
|
- DRONE_RUNNER_NAME=${HOSTNAME}
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /opt/services:/opt/services
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 3030:3000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user