Docker 部署

通过Docker Compose部署InLong, 这种部署方式只适用于开发调试,不适用于生产环境.

注意:Docker 部署默认消息队列服务使用的是 Apache Pulsar

准备条件:

  • Docker 19.03.1+
  • Docker Compose 1.29.2+

编译

可以参考如何编译.

部署

启动所有组件:

  1. cd docker/docker-compose
  2. docker-compose up -d

注册组件

  • DataProxy
  1. curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
  2. {
  3. "name": "default_dataproxy",
  4. "type": "DATA_PROXY",
  5. "ip": "dataproxy",
  6. "port": 46801,
  7. "mqSetName": "default_set_name",
  8. "inCharges": "admin",
  9. "creator": "admin"
  10. }
  11. '
  • Pulsar
  1. curl --header "Content-Type: application/json" --request POST http://localhost:8083/api/inlong/manager/openapi/cluster/save --data '
  2. {
  3. "name": "pulsar_cluster",
  4. "type": "PULSAR",
  5. "url": "pulsar://pulsar:6650",
  6. "token": "null",
  7. "mqSetName": "default_set_name",
  8. "extParams": "{\"pulsar_adminUrl\": \"http://pulsar:8080\"}",
  9. "inCharges": "admin",
  10. "creator": "admin"
  11. }'

使用

当所有容器都成功启动后,可以访问http://localhost,并使用以下默认账号登录:

  1. User: admin
  2. Password: inlong

销毁

  1. docker-compose down