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