drone/docker-compose.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2020-10-08 07:26:46 +00:00
version: "2"
networks:
webproxy:
external: true
2020-10-08 07:26:46 +00:00
backend-gitea:
external: true
services:
drone:
container_name: drone
2021-09-10 06:45:35 +00:00
image: drone/drone:1.10
2020-10-08 07:26:46 +00:00
restart: always
environment:
- 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
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_AGENTS_ENABLED=true
- DRONE_TLS_AUTOCERT=false
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- 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:
- /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:
- 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