services: drone: use drone-runner instead of drone-agent

I also changed the capacity to run a few more pipelines at the same
time.
This commit is contained in:
Bruno BELANYI 2020-08-28 11:38:37 +02:00
parent 23246cccae
commit a2d9178cd8
2 changed files with 10 additions and 7 deletions

View File

@ -128,17 +128,17 @@ services:
depends_on:
- gitea
drone-agent:
image: drone/agent:1
container_name: drone-agent
drone-runner:
image: drone/drone-runner-docker:1
container_name: drone-runner
restart: unless-stopped
env_file:
- ./drone/drone-agent.env
- ./drone/drone-agent.env.secret
- ./drone/drone-runner.env
- ./drone/drone-runner.env.secret
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3030:3000
expose:
- 3000
depends_on:
- drone-server

View File

@ -1,4 +1,7 @@
DRONE_RPC_HOST=drone.belanyi.fr
DRONE_RPC_PROTO=https
DRONE_RUNNER_CAPACITY=5
# Put into a secret environment file
#DRONE_RPC_SECRET=FIXME-CHANGE-THIS
#DRONE_UI_USERNAME=FIXME-CHANGE-THIS
#DRONE_UI_PASSWORD=FIXME-CHANGE-THIS