The docker-compose deployment scheme uses Mysql + IoTDB as the dependent storage service of HertzBeat.
This solution will start three container services Mysql, IoTDB, HertzBeat
- Download and install docker environment & docker-compose environment
Please refer to Docker official website documentation, Compose installation
$ docker -v Docker version 20.10.12, build e91ed57
-
Download the hertzbeat-docker-compose installation deployment script file The script file is located in
script/docker-compose/hertzbeat-mysql-iotdblink [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-iotdb) -
Optional: add external JDBC driver jars to
ext-libMySQL-compatible monitoring can use the built-in query engine directly, so
mysql-connector-jis optional. If you want HertzBeat to prefer JDBC after restart, placemysql-connector-jinext-lib. Oracle and DB2 still require external JDBC jars inext-lib. -
Enter the deployment script docker-compose directory, execute
docker compose up -d
Browser access localhost:1157 to start, the default account password admin/hertzbeat