I’ll start off by saying I’m pretty new to docker. Also, if this is not the appropriate avenue for my question please feel free to direct where I need to go. Has anyone successfully run the lora app server via docker with a lets encrypt cert and nginx reverse proxy? I’ve tried with the nginx reverse proxy docker image at https://github.com/DanielDent/docker-nginx-ssl-proxy but have failed. This is what my docker-compose.yml looks like:
version: "3"
services:
nginx-ssl-proxy:
image: danieldent/nginx-ssl-proxy
restart: always
environment:
UPSTREAM: localhost:8080
SERVERNAME: my.domain.com
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/letsencrypt"
loraserver:
image: loraserver/loraserver:2
volumes:
- ./configuration/loraserver:/etc/loraserver
appserver:
image: loraserver/lora-app-server:2
ports:
- 8080:8080
volumes:
- ./configuration/lora-app-server:/etc/lora-app-server
gatewaybridge:
image: loraserver/lora-gateway-bridge:2
ports:
- 1700:1700/udp
volumes:
- ./configuration/lora-gateway-bridge:/etc/lora-gateway-bridge
geoserver:
image: loraserver/lora-geo-server:2
volumes:
- ./configuration/lora-geo-server:/etc/lora-geo-server
postgresql:
image: postgres:9.6-alpine
volumes:
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data
redis:
image: redis:4-alpine
volumes:
- redisdata:/data
mosquitto:
image: eclipse-mosquitto
ports:
- 1883:1883
volumes:
postgresqldata:
redisdata:
When I navigate to http://my.domain.com:8080 I’m redirected to http://my.domain.com:8080/#/login instead of https://my.domain.com. And when I try to navigate directly to https://my.domain.com I see a 502 Bad Gateway error. On the node itself, I keep seeing the following error log:
nginx-ssl-proxy_1 | 2019/04/15 21:14:55 [error] 164#164: *19 no live upstreams while connecting to upstream, client: [my.ip] , server: my.domain.com, request: "GET / HTTP/2.0", upstream: "http://origin/", host: "my.domain.com"
Anyone know what I’m missing here?