From 753e8f55ee1848f876e9ce840aca1f4bba6947ee Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 26 Dec 2022 23:39:15 +0900 Subject: [PATCH] setup drone runner --- README.md | 2 +- compose.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0847808..6791306 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ansible-playbook setup.yml 詳しい構成は [setup.yml](setup.yml) を参照 -## Drone Server +## Drone Server & Runner Gitea への導入 : https://docs.drone.io/server/provider/gitea/ diff --git a/compose.yml b/compose.yml index 17a8371..1b19928 100644 --- a/compose.yml +++ b/compose.yml @@ -15,5 +15,18 @@ services: DRONE_SERVER_PROTO: ${DRONE_SERVER_PROTO:?} volumes: - drone_data_v2:/data + + runner: + image: drone/drone-runner-docker:1 + restart: unless-stopped + ports: + - "127.0.0.1:3000:3000" + environment: + DRONE_RUNNER_NAME: default + DRONE_RPC_PROTO: http + DRONE_RPC_HOST: drone + DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?} + volumes: + - /var/run/docker.sock:/var/run/docker.sock volumes: drone_data_v2: