From e4c344b38c7a90cb42204650e2aa5d103838080e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 9 Nov 2021 09:42:13 -0600 Subject: [PATCH] Add files --- .gitignore | 2 ++ docker-compose.yml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f9f8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b2ca2ca --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,39 @@ +version: "2.1" + +services: + server: + image: drone/drone:latest + environment: + - DRONE_GITEA_SERVER=https://git.bbaovanc.com + - DRONE_GITEA_CLIENT_ID + - DRONE_GITEA_CLIENT_SECRET + - DRONE_RPC_SECRET + - DRONE_SERVER_HOST=drone.bbaovanc.com + - DRONE_SERVER_PROTO=https + - DRONE_GIT_ALWAYS_AUTH=true + - DRONE_USER_FILTER=bbaovanc + - DRONE_LOGS_TEXT=true + - DRONE_LOGS_PRETTY=true + - DRONE_LOGS_COLOR=true + volumes: + - ./data:/data + restart: always + ports: + - 8080:80 + - 8443:443 + + runner: + image: drone/drone-runner-docker:latest + environment: + - DRONE_RPC_PROTO=https + - DRONE_RPC_HOST=drone.bbaovanc.com + - DRONE_RPC_SECRET + - DRONE_RUNNER_CAPACITY=2 + - DRONE_RUNNER_NAME=bbaosrv + volumes: + - /var/run/docker.sock:/var/run/docker.sock + restart: always + ports: + - 3002:3000 + depends_on: + - server