[solved] install drone+gogs, version control system not configured

Hello,

I follwed the guide http://readme.drone.io/admin/installation-guide/, and tried to install drone using docker-compose, putted my url to the gogs server. Started the process using docker-compose up but all it says that no version control is installed and ws://mydomainhete:8000/ws/broker connection refused (i am using port 8000) and used a nginx reverse proxy. Can someone guide me on what am i doing wrong?

Error msg:

drone-server_1 | time=“2017-01-28T08:11:30Z” level=fatal msg="version control system not configured"
root_drone-server_1 exited with code 1
drone-agent_1 | 1:M 28 Jan 08:11:38.697 # connection failed, retry in 15s. websocket.Dial ws://ci.myweb.pw:8000/ws/broker: dial tcp 45.58.127.19:8000: getsockopt: connection refused

My docker-compose.yml

version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    ports:
      - 8000:8000
    volumes:
      - ./drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_SECRET=test
      - 'DRONE_GOGS: true'
      - 'DRONE_GOGS_URL: https://git.myweb.pw'
      - 'DRONE_GOGS_GIT_USERNAME: test'
      - 'DRONE_GOGS_GIT_PASSWORD: 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://ci.myweb.pw:8000/ws/broker
      - DRONE_SECRET=test

Thanks

version control system not configured

this is because your yaml is invalid and does not match the samples in the documentation. The below example quotes variables and mixes map and array syntax:

      - DRONE_OPEN=true
      - DRONE_SECRET=test
      - 'DRONE_GOGS: true'
      - 'DRONE_GOGS_URL: https://git.myweb.pw'
      - 'DRONE_GOGS_GIT_USERNAME: test'
      - 'DRONE_GOGS_GIT_PASSWORD: test'

Instead please use a consistent, valid syntax:

       - DRONE_OPEN=true
       - DRONE_SECRET=test
-      - 'DRONE_GOGS: true'
-      - 'DRONE_GOGS_URL: https://git.myweb.pw'
-      - 'DRONE_GOGS_GIT_USERNAME: test'
-      - 'DRONE_GOGS_GIT_PASSWORD: test'
+      - DRONE_GOGS=true
+      - DRONE_GOGS_URL=https://git.myweb.pw
+      - DRONE_GOGS_GIT_USERNAME=test
+      - DRONE_GOGS_GIT_PASSWORD=test

and ws://mydomainhete:8000/ws/broker connection refused (i am using port 8000) and used a nginx reverse proxy

did you configure your nginx server to accept websockets, per the drone documentation? See http://readme.drone.io/admin/setup-reverse-proxy/

the above step, however, should not even be necessary. The DRONE_SERVER in the sample docker compose file in the official documentation does not need to be changed. You can use the default value in the official documentation, and bypass your nginx instance:

-     - DRONE_SERVER=ws://ci.myweb.pw:8000/ws/broker
+     - DRONE_SERVER=ws://drone-server:8000/ws/broker
      - DRONE_SECRET=test

@bradrydzewski
If i try to do it without the ""
[email protected]:~# docker-compose up
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
services.drone-server.environment contains {“DRONE_GOGS”: true}, which is an invalid type, it should be a string

then you can use DRONE_GOGS: "true"

Still complains
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
services.drone-server.environment contains {“DRONE_GOGS”: “true”}, which is an invalid type, it should be a string

or you can use the array syntax instead of map syntax

-      - DRONE_GOGS: true
-      - DRONE_GOGS_URL: https://git.myweb.pw
-      - DRONE_GOGS_GIT_USERNAME: test
-      - DRONE_GOGS_GIT_PASSWORD: test
+      - DRONE_GOGS=true
+      - DRONE_GOGS_URL=https://git.myweb.pw
+      - DRONE_GOGS_GIT_USERNAME=test
+      - DRONE_GOGS_GIT_PASSWORD=test

finally works, thanks!