infrastructure/ansible/plays/services/gitea-runner/docker-compose.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

2023-02-28 20:08:06 +01:00
---
version: '3.9'
services:
dind:
image: docker:dind
restart: unless-stopped
privileged: true
volumes:
- /lib/modules:/lib/modules:ro
environment:
DOCKER_TLS_CERTDIR: ""
2023-09-13 04:44:10 +02:00
command:
- '--tls=false' # Do not force TLS; note that this service is NOT exposed to the internet
2023-02-28 20:08:06 +01:00
networks:
- backend
- default
drone_runner:
2023-08-16 14:28:33 +02:00
image: drone/drone-runner-docker:1
2023-02-28 20:08:06 +01:00
restart: always
environment:
- "DOCKER_HOST=tcp://dind:2375"
2023-08-22 18:16:22 +02:00
- "DRONE_LIMIT_MEM=8192000000"
2023-02-28 20:08:06 +01:00
- "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
...