Hello, I just tried to setup a new 0.5 version of drone and the agent just refuses to connect to the server. Server starts correctly though, and I can do stuff in web ui. I am using the configuration under the nginx proxy, but agent is connecting via docker compose service name. I guess it should not be a problem, but please correct me if i’m wrong.
I took docker-compose file configuration from the official docs here: http://readme.drone.io/admin/installation-guide/
The output of the logs is the following:
drone-agent_1 | time="2017-02-18T19:00:33Z" level=warning msg="reconnect in 15s. Post ws://drone-server:8000/ws/broker/api/queue/pull/linux/amd64: unsupported protocol scheme \"ws\""
Other info that could be useful:
Docker version 1.12.1, build 23cf638
docker-compose version 1.6.0, build d99cad6
My slightly changed docker-compose.yml:
services:
drone-server:
image: drone/drone:0.5
expose:
- 8000
volumes:
- ./drone:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=true
- DRONE_SECRET=drone
- DRONE_GOGS=true
- DRONE_GOGS_URL=http://gogs.domain.com
- I_UNDERSTAND_I_AM_USING_AN_UNSTABLE_VERSION=true
- I_AGREE_TO_FIX_BUGS_AND_NOT_FILE_BUGS=true
- DRONE_DEBUG=true
drone-agent:
image: drone/drone:0.5
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=ws://drone-server:8000/ws/broker
- DRONE_SECRET=drone
- DRONE_DEBUG=true
I appreciate any help. Thanks.