diff --git a/README.md b/README.md index 22da2ee..c7fbbbb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,23 @@ - https://hub.docker.com/r/openhab/openhab/ - https://github.com/openhab/openhab-docker +### Database + +Connect to database container: +``` +source openhab.conf +mariadb -h 172.55.55.101 -uopenhab -p${OPENHAB_DATABASE_PASSWORD} openhab +``` + +Install the `jdbc:mariadb` persistence service and add the following lines to `data/conf/services/jdbc.cfg`: +``` +url=jdbc:mariadb://db-openhab:3306/openhab +user=openhab +password=dbpw +``` +Replace `dbpw` with your password from `openhab.config`. + + ### weather binding Copy these folders: - `webapps/weather-data/layouts` -> `./data/userdata/webapps/weather-data/layouts`