This is an arrangement of docker-compose (ARM images) for running openhab cloud instance on your ARM device (Raspberry, TinkerBoard,etc.)
The docker-compose.yml arranges the following containers:
- app-1: The node app, docker-compose build it with the Dockerfile i've created and your config.json
- mongodb
- redis
- nginx-proxy: the container with nginx as reverse proxy
- nginx-proxy-letsencrypt: at start it create the https certificates of your site from letsencrypt
Currently tested on my instance , with Raspberry and Asus Tinkerboard
It's not so wide tested, so...Feel to open new issues and ask if you have troubles.
Clone the repo using --recurse-submodules (the repo contain reference to openhab-cloud):
- git clone --recurse-submodules https://github.com/lucacalcaterra/openhabcloud-rpi-docker.git
- Copy docker-compose.yml.EXAMPLE to docker-compose.yml and change variables refer to your domain and changing with your openhab server port
- Copy openhabcloud_nginx.conf.EXAMPLE to openhabcloud_nginx.conf and change variables refer to your domain
- Inside the openhab-cloud folder copy config-production.json to config.json and change it according your environment
- launch with docker-compose up -d
Check docker logs , if have troubles open an issue on the repo.
@ 2019 - Luca Calcaterra