Hi there,
I am setting up a drone server.
My server is working properly (as far as I know) but my runner cannot connect to the server for some reasons.
Here is my docker-compose file
version: ‘3’
services:
drone-server:
image: drone/drone:latest
container_name: drone-server
ports:
- 9000
- 8000:80
volumes:
- ./data:/var/lib/drone
restart: always
environment:
- DRONE_SERVER_HOST=192.168.1.170/drone
- DRONE_GITEA_SERVER=http://192.168.1.170/gitea
- DRONE_GITEA_CLIENT_ID=6fd4ab1b-d5d0-4a1b-926c-317c5aa780d8
- DRONE_GITEA_CLIENT_SECRET=HD9FR957FP213URfODnJ81lwK6UvGvOW_SZN13ix6Pc=
- DRONE_RPC_SECRET=test
- DRONE_SERVER_PROTO=http
drone-agent:
image: drone/drone-runner-docker:1
container_name: drone-runner-docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server:9000
- DRONE_RPC_SECRET=test
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=runner_1
depends_on:
- drone-server
ports:
- 3000:3000
I get the following error :
level=error msg="cannot ping the remote server" error="Post http://drone-server:9000/rpc/v2/ping: dial tcp 172.23.0.2:9000: connect: connection refused"
172.23.0.2
corresponds to the drone server when I inspect the network.
Any idea what I am doing wrong?
Thanks!