You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
52 lines
1.6 KiB
#bash
|
|
version: "3.8"
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1.14.2
|
|
restart: always
|
|
ports:
|
|
- 3000:3000
|
|
- 3022:22
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./data/gitea:/data
|
|
#https://docs.drone.io/server/provider/gitea/
|
|
drone:
|
|
image: drone/drone:2.0.0
|
|
restart: always
|
|
ports:
|
|
- 9080:80
|
|
- 9443:443
|
|
environment:
|
|
- DRONE_GITEA_SERVER=http://${IP}:3000
|
|
- DRONE_GITEA_CLIENT_ID=a8cc74a6-c4f8-461b-a8fe-752a17dfa162
|
|
- DRONE_GITEA_CLIENT_SECRET=P_DVOLwB4eP4rmhhsmbIN4Jg_dUs8dwvWfemr9MF_UE=
|
|
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
|
|
- DRONE_SERVER_HOST=${IP}:9080
|
|
- DRONE_SERVER_PROTO=http
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./data/drone:/data
|
|
depends_on:
|
|
- gitea
|
|
drone-runner-docker:
|
|
image: drone/drone-runner-docker:1.6.3
|
|
#restart: always
|
|
privileged: true
|
|
ports:
|
|
- 3001:3000
|
|
environment:
|
|
- DRONE_RPC_PROTO=http
|
|
- DRONE_RPC_HOST=${IP}:9080
|
|
- DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
|
|
- DRONE_RUNNER_CAPACITY=2
|
|
- DRONE_RUNNER_NAME=http://${IP}:3001
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
depends_on:
|
|
- drone
|