2020-10-08 07:26:46 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
networks:
|
2020-10-08 10:23:59 +00:00
|
|
|
webproxy:
|
|
|
|
external: true
|
|
|
|
|
2020-10-08 07:26:46 +00:00
|
|
|
backend-gitea:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
2020-10-08 10:23:59 +00:00
|
|
|
drone:
|
|
|
|
container_name: drone
|
|
|
|
image: drone/drone:1.9
|
2020-10-08 07:26:46 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
2020-10-08 10:23:59 +00:00
|
|
|
- DRONE_GITEA_SERVER=https://git.bmen.cc
|
|
|
|
- DRONE_GIT_ALWAYS_AUTH=false
|
|
|
|
- DRONE_RUNNER_CAPACITY=1
|
|
|
|
- DRONE_SERVER_HOST=drone.bmen.cc
|
|
|
|
- DRONE_SERVER_PROTO=https
|
2020-10-08 17:40:08 +00:00
|
|
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
|
|
|
- DRONE_AGENTS_ENABLED=true
|
2020-10-08 10:23:59 +00:00
|
|
|
- DRONE_TLS_AUTOCERT=false
|
2020-10-08 10:35:00 +00:00
|
|
|
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
|
|
|
|
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
|
2020-10-08 10:23:59 +00:00
|
|
|
- VIRTUAL_HOST=drone.bmen.cc
|
|
|
|
- VIRTUAL_PORT=80
|
|
|
|
- DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true
|
2020-10-08 07:26:46 +00:00
|
|
|
volumes:
|
2020-10-08 10:23:59 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2020-10-08 10:25:28 +00:00
|
|
|
- /opt/appdata/drone:/data
|
2020-10-08 07:26:46 +00:00
|
|
|
networks:
|
2020-10-08 10:23:59 +00:00
|
|
|
- backend-gitea
|
2020-10-08 17:29:00 +00:00
|
|
|
- webproxy
|
|
|
|
|
|
|
|
drone-agent:
|
|
|
|
container_name: drone-agent
|
|
|
|
image: drone/drone-runner-docker:1
|
|
|
|
restart: always
|
|
|
|
environment:
|
2020-10-08 17:35:16 +00:00
|
|
|
- DRONE_RPC_PROTO=http
|
2020-10-08 17:33:59 +00:00
|
|
|
- DRONE_RPC_HOST=drone
|
2020-10-08 17:29:00 +00:00
|
|
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
|
|
|
- DRONE_RUNNER_CAPACITY=1
|
|
|
|
- DRONE_RUNNER_NAME=${HOSTNAME}
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
networks:
|
|
|
|
- backend-gitea
|
|
|
|
|