Skip to content

Latest commit

 

History

History
 
 

hertzbeat-mysql-tdengine

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Docker-Compose deployment HertzBeat+Mysql+Tdengine Solution

The docker-compose deployment scheme uses Mysql + Tdengine as the dependent storage service of Hertzbeat. This solution will start three container services Mysql, Tdengine, HertzBeat

Install Docker & Docker-compose
  1. 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
    
docker compose deploys hertzbeat and its dependent services
  1. Download the hertzbeat-docker-compose installation deployment script file The script file is located in script/docker-compose/hertzbeat-mysql-tdengine link [script/docker-compose](https://gitee.com/dromara/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-tdengine)

  2. Enter the deployment script docker-compose directory, execute

    docker compose up -d

  3. Enter tdengine to create hertzbeat database

    $ docker exec -it compose-tdengine /bin/bash root@tdengine-server:~/TDengine-server-2.4.0.4#

    Create a database named hertzbeat After entering the container, execute the taos shell client program.

    root@tdengine-server:~/TDengine-server-2.4.0.4# taos Welcome to the TDengine shell from Linux, Client Version: 2.4.0.4 Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. taos>

    Execute the create database command

    taos> show databases;

    taos> CREATE DATABASE hertzbeat KEEP 90 DAYS 10 BLOCKS 6 UPDATE 1;

Restart the application

docker-compose restart hertzbeat

Start exploring HertzBeat

Browser access localhost:1157 to start, the default account password admin/hertzbeat