infra/roles/drone/templates/docker-compose.yml.j2

30 lines
905 B
Plaintext
Raw Normal View History

2024-03-09 03:19:05 -05:00
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