2024-03-25 01:19:53 -04: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={{ 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 }}
|
2024-03-26 18:24:48 -04:00
|
|
|
- DRONE_USER_CREATE=username:{{ drone_admin_username }},admin:true
|
2024-03-25 01:19:53 -04:00
|
|
|
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
|
2024-03-26 18:31:37 -04:00
|
|
|
- DRONE_RUNNER_CAPACITY={{ drone_workers }}
|
2024-03-26 18:50:03 -04:00
|
|
|
- DRONE_CPU_SET={{ drone_cpu_set }}
|
2024-03-26 18:31:37 -04:00
|
|
|
- DRONE_MEMORY_LIMIT={{ drone_memory_limit }}
|