|
|
@@ -2,6 +2,10 @@
|
|
2
|
2
|
# Start taos-explorer container
|
|
3
|
3
|
# Uses native connection (cluster_native) to connect directly to taosd
|
|
4
|
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.
|
|
5
|
9
|
|
|
6
|
10
|
set -e
|
|
7
|
11
|
|
|
|
@@ -20,7 +24,7 @@ podman run -d \
|
|
20
|
24
|
--network bridge \
|
|
21
|
25
|
--restart unless-stopped \
|
|
22
|
26
|
-p 127.0.0.1:6060:6060 \
|
|
23
|
|
- -v "${DATA_DIR}:/var/lib/taos/explorer" \
|
|
|
27
|
+ -v "${DATA_DIR}:/var/lib/taos" \
|
|
24
|
28
|
-v "${CFG_FILE}:/etc/taos/explorer.toml:ro" \
|
|
25
|
29
|
-e EXPLORER_SKIP_REGISTER=true \
|
|
26
|
30
|
"${IMAGE}" \
|