I’ve been trying to set up a personal openhab-cloud instance using docker on on my linux web server and as yet have had no luck. Because my web server uses ports 443 and 80, the only change I had to make to the docker-compose.yml were the lines:
- "3443:443"
- "3080:80"
- "11080:8080"
I followed the directions at: docker-compose/README.md and a fresh clone of the github repository, with no luck at all.
I have tried using the available docker images:
- Change directory to deployment/docker-compose
- Edit docker-compose.yml
- Edit .env
- docker-compose pull
- docker-compose up -d
And it can NEVER find “./config.json”. The other three containers seem to be up and ready, but never the openhab-cloud-app container.
I’ve tried every possible setting I can think of for the line in docker-compose.yml:
- ./config.json.template:/opt/openhabcloud/config.json.template
Followed by a full rebuild of the docker system using “docker-compose down -v --rmi all”, deleting all docker images and starting fresh.
I understand what it’s supposed to be: to map host file “./config.json.template” to docker image file :/opt/openhabcloud/config.json.template.
I’ve tried mapping the template, I’ve tried mapping the config.json file directly…no dice. Can’t find “./config.json”.
I have tried building the docker image myself:
- Change directory to deployment/docker-compose
- Edit docker-compose.yml
- Edit .env
- docker-compose up -d
Same issue.
Having dug in further, I noticed that the pre-build image and the git-built image are different as well. The pre-built image runs “/bin/sh -c node app.js” directly and the git built image runs “./run-app.sh” to startup. So they are obviously NOT the same image. (Yes, I realize that “run-app.sh” just tries to create a config.json.template in the image, then runs the same command as the prebuilt image - I’m just pointing out that the two are out of sync anyway).
So, does anyone have any idea what I’m doing wrong?
Further down the rabbit hole, I will need to get the ports and certificates from Let’s Encrypt working, but that’s another issue.
Thanks for ANY ideas - I’m out of them.