我正在Mac上运行docker-common of Drone CI / CD:像这样的文件:
version: "3"
services:
drone-server:
container_name: drone-server
image: drone/drone
volumes:
- "./data/db-drone:/data/db-drone"
restart: always
ports:
- "9090:80"
- "9000:443"
environment:
- DRONE_SERVER_HOST=111.111.11.111 #example IP
- DRONE_GITHUB_SERVER=https://github.com
- DRONE_ADMIN=myname
- DRONE_GITHUB_CLIENT_ID=2222222222222
- DRONE_GITHUB_CLIENT_SECRET=3333333333333333333333
- DRONE_SERVER_PROTO=http
- DRONE_RPC_SECRET=1010101010101010101010101010
- DRONE_AGENTS_ENABLED=true
- DRONE_USER_CREATE=username:myname,machine:false,admin:true
drone-runner:
container_name: drone-runner
image: drone/drone-runner-docker:1
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=1010101010101010101010101010
- DRONE_RUNNER_CAPACITY=8
- DRONE_RUNNER_NAME="drone-server"
- DRONE_RPC_PROTO=http
运行docker-compose up
后,我现在在DigitalOcean上创建了Droplet,无人机服务器和无人机运行器现在已连接
但是当我访问http://11.111.11.111:9090
时,什么都没有发生,
在我的GitHub OAuth上,URL为http://11.111.11.111:9090
,端点为http://11.111.11.111:9090/login
我是对的,我应该在http://11.111.11.111:9090/login创建它并在docker中启动它之后访问它?
还是我在那个docker-compose.yml中丢失了东西?我在本地Mac上运行该文件