Split off gitea-runner
This commit is contained in:
parent
f22b84e9db
commit
16dc282105
@ -106,6 +106,7 @@
|
|||||||
- { role: compose_project, service: minio }
|
- { role: compose_project, service: minio }
|
||||||
- { role: compose_project, service: registry }
|
- { role: compose_project, service: registry }
|
||||||
- { role: compose_project, service: gitea }
|
- { role: compose_project, service: gitea }
|
||||||
|
- { role: compose_project, service: gitea-runner }
|
||||||
- { role: compose_project, service: ba-gitlab-runner }
|
- { role: compose_project, service: ba-gitlab-runner }
|
||||||
- { role: compose_project, service: wireguard }
|
- { role: compose_project, service: wireguard }
|
||||||
- { role: compose_project, service: hedgedoc }
|
- { role: compose_project, service: hedgedoc }
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
COMPOSE_PROJECT_NAME=gitea-runner
|
@ -0,0 +1,41 @@
|
|||||||
|
---
|
||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
dind:
|
||||||
|
image: docker:dind
|
||||||
|
restart: unless-stopped
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
environment:
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
- default
|
||||||
|
|
||||||
|
drone_runner:
|
||||||
|
image: drone/drone-runner-docker:1.8
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- "DOCKER_HOST=tcp://dind:2375"
|
||||||
|
- "DRONE_RPC_SECRET={{ gitea.drone.rpc_secret }}"
|
||||||
|
- "DRONE_RPC_HOST=drone.tobiasmanske.de"
|
||||||
|
- "DRONE_RPC_PROTO=https"
|
||||||
|
- "DRONE_RUNNER_CAPACITY={{ gitea.drone.runner_capacity }}"
|
||||||
|
- "DRONE_RUNNER_NAME={{ gitea.drone.runner_name }}"
|
||||||
|
{% if gitea.drone.runner_labels is defined %}
|
||||||
|
- "DRONE_RUNNER_LABELS={{ gitea.drone.runner_labels | join(',') }}"
|
||||||
|
{% endif %}
|
||||||
|
- "DRONE_RUNNER_CLONE_IMAGE=drone/git:linux-amd64"
|
||||||
|
- "DRONE_RUNNER_VOLUMES=/etc/hosts:/etc/hosts"
|
||||||
|
depends_on:
|
||||||
|
- dind
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
- default
|
||||||
|
|
||||||
|
networks:
|
||||||
|
backend:
|
||||||
|
internal: true
|
||||||
|
...
|
@ -79,24 +79,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- gitea
|
- gitea
|
||||||
|
|
||||||
drone_runner:
|
|
||||||
image: drone/drone-runner-docker:1.8
|
|
||||||
restart: always
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
environment:
|
|
||||||
- "DRONE_RPC_SECRET={{ gitea.drone.rpc_secret }}"
|
|
||||||
- "DRONE_RPC_HOST=drone.tobiasmanske.de"
|
|
||||||
- "DRONE_RPC_PROTO=https"
|
|
||||||
- "DRONE_RUNNER_CAPACITY=2"
|
|
||||||
- "DRONE_RUNNER_NAME=docker-01"
|
|
||||||
- "DRONE_RUNNER_CLONE_IMAGE=drone/git:linux-amd64"
|
|
||||||
- "DRONE_RUNNER_VOLUMES=/etc/hosts:/etc/hosts"
|
|
||||||
networks:
|
|
||||||
- backend
|
|
||||||
- default
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
backend:
|
backend:
|
||||||
internal: true
|
internal: true
|
||||||
|
Loading…
Reference in New Issue
Block a user