Docker 部署
通过Docker Compose部署InLong, 这种部署方式只适用于开发调试,不适用于生产环境.
注意:Docker 部署默认消息队列服务使用的是 Apache Pulsar
准备条件:
- Docker 19.03.1+
- Docker Compose 1.29.2+
编译
可以参考如何编译.
部署
启动所有组件:
cd docker/docker-compose
docker-compose up -d
注册组件
- DataProxy
curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
{
"name": "default_dataproxy",
"type": "DATA_PROXY",
"ip": "dataproxy",
"port": 46801,
"mqSetName": "default_set_name",
"inCharges": "admin",
"creator": "admin"
}
'
- Pulsar
curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
{
"name": "pulsar_cluster",
"type": "PULSAR",
"url": "pulsar://pulsar:6650",
"token": "null",
"mqSetName": "default_set_name",
"extParams": "{\"pulsar_adminUrl\": \"http://pulsar:8080\"}",
"inCharges": "admin",
"creator": "admin"
}'
使用
当所有容器都成功启动后,可以访问http://localhost
,并使用以下默认账号登录:
User: admin
Password: inlong
销毁
docker-compose down