Hey,
alright i’ve successfully installed drone with the following compose file
version: '2'
services:
drone-server:
image: drone/drone:0.5
ports:
- 8000:8000
volumes:
- ./drone:/var/lib/drone/
restart: always
environment:
- DRONE_GOGS=true
- DRONE_GOGS_URL=https://git.code.com
- DRONE_GOGS_GIT_USERNAME=test
- DRONE_GOGS_GIT_PASSWORD=test
- DRONE_ADMIN=test
- DRONE_SECRET=test
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=test
My problem is i have no clue how a administrate drone. I cant login with the web interface with ID:test and PW:test, the server logs a output like this “cannot authenticate user. Post … dial tcp … i/o timeout.”.
Second i cant login with drone on my PC with the env vars [$DRONE_SERVER] and [$DRONE_TOKEN] the respond is “client error 401: User not authorized”. DRONE_TOKEN is set to the following of the first message in the server log "level=warning msg=“agents can connect with token …”
I think i’ve missed somethin critical in the docs…
Thanks