I downloaded the yml file you mentioned and did a docker-compose up. After that, started the browser, logged in (admin), then tried to add a network server (localhost:8080). I got the same error as described below.
BTW, here is my yml file. Note that I am running the gateway on another machine. And yes, I did clear the browser cache too …
After running docker-compose up, then starting Firefox, logging in as admin, and trying to create a network server (localhost:8080), I get this error:
Error rpc error: code = Unavailable desc = transport is closing (code: 2)
in the browser and
appserver_1 | 2017/12/01 19:17:38 http: TLS handshake error from 127.0.0.1:58250: tls: first record does not look like a TLS handshake
appserver_1 | time=“2017-12-01T19:17:38Z” level=info msg="transport: http2Client.notifyError got notified that the client transport was broken read tcp 127.0.0.1:58250->127.0.0.1:8080: read: connection reset by peer."
Here is the yml file (passwords changed)
version: “2”
services:
loraserver:
image: loraserver/loraserver
environment:
- DB_AUTOMIGRATE=true
- LOG_NODE_FRAMES=true
- NET_ID=010203
- BAND=US_902_928
- REDIS_URL=redis://redis:6379
- GW_MQTT_SERVER=tcp://mosquitto:1883
- GW_MQTT_USERNAME=user
- GW_MQTT_PASSWORD=password
- GW_SERVER_JWT_SECRET=verysecret
- POSTGRES_DSN=postgres://loraserver_ns:loraserver_ns@postgresql_ns/loraserver_ns?sslmode=disable
- GW_CREATE_ON_STATS=true
- JS_SERVER=http://appserver:8003
depends_on:
- postgresql_ns
- redis
- mosquitto
appserver:
image: loraserver/lora-app-server
ports:
- 8080:8080
environment:
- DB_AUTOMIGRATE=true
- AS_PUBLIC_SERVER=appserver:8001
- REDIS_URL=redis://redis:6379
- POSTGRES_DSN=postgres://loraserver_as:loraserver_as@postgresql_as/loraserver_as?sslmode=disable
- MQTT_SERVER=tcp://mosquitto:1883
- MQTT_USERNAME=user
- MQTT_PASSWORD=password
- JWT_SECRET=verysecret
- HTTP_TLS_CERT=/etc/lora-app-server/certs/http.pem
- HTTP_TLS_KEY=/etc/lora-app-server/certs/http-key.pem
depends_on:
- postgresql_as
- mosquitto
- redis
- loraserver
postgresql_ns:
image: postgres:9.6-alpine
ports:
- 5432
environment:
- POSTGRES_PASSWORD=loraserver_ns
- POSTGRES_USER=loraserver_ns
- POSTGRES_DB=loraserver_ns
postgresql_as:
image: postgres:9.6-alpine
ports:
- 5432
environment:
- POSTGRES_PASSWORD=loraserver_as
- POSTGRES_USER=loraserver_as
- POSTGRES_DB=loraserver_as
redis:
image: redis:4-alpine
ports:
- 6379
mosquitto:
image: iq/mosquitto
ports:
- “1883:1883”
- “8883:8883”
- “9001:9001”
environment:
- MQTT_LOGIN_USERNAME=user
- MQTT_LOGIN_PASSWORD=password