diff --git a/docker-compose.yml b/docker-compose.yml index ee61fe1..32d4de9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,10 +45,12 @@ retries: 10 environment: - MYSQL_ROOT_PASSWORD=${OPENHAB_DATABASE_ROOT} - - MYSQL_DATABASE=${OPENHAB_DATABASE_NAME} - - MYSQL_USER=${OPENHAB_DATABASE_USER} + - MYSQL_DATABASE=openhab + - MYSQL_USER=openhab - MYSQL_PASSWORD=${OPENHAB_DATABASE_PASSWORD} volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/timezone:/etc/timezone:ro - ./data/db/:/var/lib/mysql/ - ./conf/mariadb:/etc/mysql/conf.d/:ro networks: diff --git a/openhab.conf.example b/openhab.conf.example index 5b7ccc0..935b91b 100644 --- a/openhab.conf.example +++ b/openhab.conf.example @@ -23,16 +23,10 @@ ## database configuration -# root user password +# root password OPENHAB_DATABASE_ROOT=rootpw -# database for openhab -OPENHAB_DATABASE_NAME=openhab - -# database user -OPENHAB_DATABASE_USER=openhab - -# database password +# user password OPENHAB_DATABASE_PASSWORD=dbpw