From a2d9178cd854a668cbce1f5dc7541a8e0637dda1 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 28 Aug 2020 11:38:37 +0200 Subject: [PATCH] services: drone: use drone-runner instead of drone-agent I also changed the capacity to run a few more pipelines at the same time. --- docker-compose.yml | 14 +++++++------- drone/{drone-agent.env => drone-runner.env} | 3 +++ 2 files changed, 10 insertions(+), 7 deletions(-) rename drone/{drone-agent.env => drone-runner.env} (56%) diff --git a/docker-compose.yml b/docker-compose.yml index 1b4d32d..1d38494 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/drone/drone-agent.env b/drone/drone-runner.env similarity index 56% rename from drone/drone-agent.env rename to drone/drone-runner.env index cb1de9f..3c2fcce 100644 --- a/drone/drone-agent.env +++ b/drone/drone-runner.env @@ -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