docker-compose 部署TDengine
docker-compose 部署TDengine时序数据库
·
docker-compose安装
1.curl方式(版本号部分,根据实际情况替换成想要的版本)
sudo curl -L "https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2.添加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
3.测试是否安装成功
ubuntu@VM-4-6-ubuntu:/usr/local/bin$ docker-compose --version
Docker Compose version v2.11.0
4.编写docker-compose.yml文件
version: "3.0"
services:
td-1:
image: tdengine/tdengine:3.0.1.1 # 版本号需要自己指定
hostname: td-1
ports:
- 6030:6030
- 6041:6041
- 6043-6049:6043-6049
- 6043-6049:6043-6049/udp
environment:
TAOS_FQDN: "td-1"
TAOS_FIRST_EP: "td-1"
volumes:
- ./taos/v3/data:/var/lib/taos/
- ./taos/v3/log:/var/log/taos/
更多推荐
已为社区贡献1条内容
所有评论(0)