summaryrefslogtreecommitdiff
path: root/roles/drone/templates
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 03:19:05 -0500
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 03:19:05 -0500
commit544a62ea16a289a12b55690ad918068fb5f00564 (patch)
tree31b3389222bb4be2abea9ec36bd159c42357301a /roles/drone/templates
parent5232b710f00e85ce3b031bcaa77ff8cb81122d38 (diff)
downloadoldinfra-544a62ea16a289a12b55690ad918068fb5f00564.tar.gz
oldinfra-544a62ea16a289a12b55690ad918068fb5f00564.zip
drone.io
Diffstat (limited to 'roles/drone/templates')
-rw-r--r--roles/drone/templates/docker-compose.yml.j229
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/drone/templates/docker-compose.yml.j2 b/roles/drone/templates/docker-compose.yml.j2
new file mode 100644
index 0000000..8c5e31e
--- /dev/null
+++ b/roles/drone/templates/docker-compose.yml.j2
@@ -0,0 +1,29 @@
+version: '3'
+
+services:
+ drone:
+ container_name: drone
+ image: drone/drone:latest
+ volumes:
+ - ./drone:/data
+ ports:
+ - "127.0.0.1:2201:80"
+ environment:
+ - DRONE_GITEA_SERVER=https://git.simponic.xyz
+ - DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }}
+ - DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }}
+ - DRONE_GIT_ALWAYS_AUTH=true
+ - DRONE_SERVER_PROTO=https
+ - DRONE_SERVER_HOST=drone.internal.simponic.xyz
+ - DRONE_RPC_SECRET={{ drone_rpc_secret }}
+ drone-runner:
+ container_name: drone_runner
+ image: drone/drone-runner-docker:latest
+ userns_mode: 'host' # Needed to get access to docker socket
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+ environment:
+ - DRONE_RPC_SECRET={{ drone_rpc_secret }}
+ - DRONE_RPC_HOST=drone:80
+ - DRONE_RPC_PROTO=http
+ - DRONE_RUNNER_CAPACITY=4