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: depends_on:
- gitea - gitea
drone-agent: drone-runner:
image: drone/agent:1 image: drone/drone-runner-docker:1
container_name: drone-agent container_name: drone-runner
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ./drone/drone-agent.env - ./drone/drone-runner.env
- ./drone/drone-agent.env.secret - ./drone/drone-runner.env.secret
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
ports: expose:
- 3030:3000 - 3000
depends_on: depends_on:
- drone-server - drone-server

View file

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