数据解析模块
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

start-taos-explorer.sh 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # Start taos-explorer container
  3. # Uses native connection (cluster_native) to connect directly to taosd
  4. # REST API (taosAdapter) is no longer required
  5. #
  6. # Data mount note: TDengine image defines VOLUME /var/lib/taos which creates
  7. # an anonymous volume that overrides child bind mounts. We mount the parent
  8. # directory here; actual explorer data lives in DATA_DIR/explorer/ subdirectory.
  9. set -e
  10. CONTAINER_NAME="taos-explorer"
  11. IMAGE="docker.io/tdengine/tdengine:3.3.6.13"
  12. DATA_DIR="/mnt/taos-explorer-data"
  13. CFG_FILE="/mnt/iot-platform/config/explorer.toml"
  14. echo "Starting ${CONTAINER_NAME}..."
  15. # Stop and remove existing container if present
  16. podman rm -f "${CONTAINER_NAME}" 2>/dev/null || true
  17. podman run -d \
  18. --name "${CONTAINER_NAME}" \
  19. --network bridge \
  20. --restart unless-stopped \
  21. -p 127.0.0.1:6060:6060 \
  22. -v "${DATA_DIR}:/var/lib/taos" \
  23. -v "${CFG_FILE}:/etc/taos/explorer.toml:ro" \
  24. -e EXPLORER_SKIP_REGISTER=true \
  25. "${IMAGE}" \
  26. taos-explorer
  27. echo "${CONTAINER_NAME} started."
  28. echo "Port: 127.0.0.1:6060 (nginx proxy)"
  29. echo "Connection: native (taos://172.21.185.173:6031), no taosAdapter required"