docker-compose and config file for openhab docker image

conf/ mariadb remove deprecated variable 21 days ago
.env add environment link 1 year ago
.gitignore ignore openhab.conf 8 months ago add help 21 days ago backup dtabase dir 21 days ago add workaround for restart failure 11 months ago
docker-compose.yml using default user 21 days ago add database 21 days ago
openhab.conf.example using openhab as default db 21 days ago

Docker ocmpose file and config for openhab


Use openhab.conf for configuration. At the first start, please execute ./ to use the correct user ID in the config file. After taht you can create the container with:

docker-compose up -d

And then you can use openhab at http://localhost:8080.



Connect to database container:

source openhab.conf
mariadb -h -uopenhab -p${OPENHAB_DATABASE_PASSWORD} openhab

Install the jdbc:mariadb persistence service and add the following lines to data/conf/services/jdbc.cfg:


Replace dbpw with your password from openhab.config.

weather binding

Copy these folders:

  • webapps/weather-data/layouts -> ./data/userdata/webapps/weather-data/layouts
  • webapps/weather-data -> ./data/conf/html/weather-data

And follow the instuctions to add static for all urls like this:

Openhab doku: