38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
drone:
|
|
image: drone/drone:1
|
|
volumes:
|
|
- ./mnt/drone:/data
|
|
environment:
|
|
- "VIRTUAL_HOST=${DOMAIN}"
|
|
- "LETSENCRYPT_HOST=${DOMAIN}"
|
|
- "DRONE_GITEA_CLIENT_ID=${GITEA_CLIENT_ID}"
|
|
- "DRONE_GITEA_CLIENT_SECRET=${GITEA_CLIENT_SECRET}"
|
|
- "DRONE_GITEA_SERVER=https://${GITEA_DOMAIN}"
|
|
- "DRONE_GIT_ALWAYS_AUTH=true"
|
|
- "DRONE_RPC_SECRET=${SECRET}"
|
|
- "DRONE_SERVER_HOST=${DOMAIN}"
|
|
- "DRONE_SERVER_PROTO=https"
|
|
networks:
|
|
- default
|
|
- 10000-nginx-proxy_nginx-proxy
|
|
|
|
runner:
|
|
image: drone/drone-runner-docker:1
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- "DRONE_RPC_PROTO=http"
|
|
- "DRONE_RPC_HOST=drone"
|
|
- "DRONE_RPC_SECRET=${SECRET}"
|
|
- "DRONE_RUNNER_CAPACITY=${RUNNER_COUNT}"
|
|
- "DRONE_RUNNER_NAME=${RUNNER_NAME}"
|
|
ports:
|
|
- 3000:3000
|
|
|
|
networks:
|
|
10000-nginx-proxy_nginx-proxy:
|
|
external: true
|