From 020c97ec685b0633962d2b41a2b279db2f554555 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 4 May 2024 00:54:33 +0000 Subject: [PATCH] adding drone --- drone/docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 drone/docker-compose.yml diff --git a/drone/docker-compose.yml b/drone/docker-compose.yml new file mode 100644 index 0000000..30d34b6 --- /dev/null +++ b/drone/docker-compose.yml @@ -0,0 +1,32 @@ +version: '3' + +services: + drone: + image: drone/drone:2.23.0 + environment: + - DRONE_GITEA_CLIENT_ID=$DRONE_GITEA_CLIENT_ID + - DRONE_GITEA_CLIENT_SECRET=$DRONE_GITEA_CLIENT_SECRET + - DRONE_GITEA_SERVER=$DRONE_GITEA_SERVER + - DRONE_GIT_ALWAYS_AUTH=true + - DRONE_RPC_SECRET=$DRONE_RPC_SECRET + - DRONE_SERVER_HOST=$DRONE_SERVER_HOST + - DRONE_SERVER_PROTO=https + volumes: + - /home/mafyuh/drone/data:/data + ports: + - "81:80" + - "444:443" + restart: always + drone-runner: + image: drone/drone-runner-docker@sha256:e3595c0a0a60852d2f55750e50df6d2635b20c424d43c419575b46490d6aa864 + environment: + - DRONE_RPC_PROTO=https + - DRONE_RPC_HOST=$DRONE_RPC_HOST + - DRONE_RPC_SECRET=$DRONE_RPC_SECRET + - DRONE_RUNNER_CAPACITY=2 + - DRONE_RUNNER_NAME=my-runner + ports: + - "3002:3000" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + restart: unless-stopped