Drone 0.8.4 Installation issues

Hello,

Trying to install drone on a linux server.

I am following this guide: http://docs.drone.io/installation/

I have the following docker-compose.yml

version: '2'

services:
  drone-server:
    image: drone/drone:0.8

    ports:
      - 8181:8000
      - 9000
    volumes:
      - /var/lib/drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_HOST=http://127.0.0.1:8181
      - DRONE_ADMIN=microadam
      - DRONE_GITHUB=true
      - DRONE_GITHUB_CLIENT=xxx
      - DRONE_GITHUB_SECRET=xxx
      - DRONE_SECRET=abc123
      - DRONE_DEBUG=true

  drone-agent:
    image: drone/agent:0.8

    command: agent
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=drone-server:9000
      - DRONE_SECRET=abc123
      - DRONE_DEBUG=true

Should I be able to cURL http://127.0.01:8181? Currently it just hangs.

Last output from the drone server logs:

drone-server_1  | [GIN-debug] GET    /api/debug/pprof/heap     --> github.com/drone/drone/server/debug.HeapHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/goroutine --> github.com/drone/drone/server/debug.GoroutineHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/block    --> github.com/drone/drone/server/debug.BlockHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/threadcreate --> github.com/drone/drone/server/debug.ThreadCreateHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/cmdline  --> github.com/drone/drone/server/debug.CmdlineHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/profile  --> github.com/drone/drone/server/debug.ProfileHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] POST   /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /api/debug/pprof/trace    --> github.com/drone/drone/server/debug.TraceHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /metrics                  --> github.com/drone/drone/server/metrics.PromHandler.func1 (13 handlers)
drone-server_1  | [GIN-debug] GET    /version                  --> github.com/drone/drone/server.Version (12 handlers)
drone-server_1  | [GIN-debug] GET    /healthz                  --> github.com/drone/drone/server.Health (12 handlers)
drone-server_1  | time="2018-01-25T15:23:52Z" level=debug msg="agent connected: ca4aa48b5860: polling"

Any thoughts?

Many thanks!

Have you tried to curl 0.0.0.0:8181 instead? If that doesn’t work, I recommend contacting Docker support to discuss host machine network and port mapping configuration issues.

Hey!

When you set 127.0.0.1 as a host, it is inside the Docker container. so try to put 8000 instead of 8181 in the DRONE_HOST and it should work :slight_smile:

Thanks for the input. Turns out, if I DONT run it via docker-compose, it works! Who knows…

It’s because you need o specify the network. In this case, if you specified your network, your host would be drone-server.