30 lines
901 B
Django/Jinja
30 lines
901 B
Django/Jinja
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={{ drone_gitea_server }}
|
|
- 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_server_host }}
|
|
- 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
|