Przeglądaj źródła

fix: taos-explorer 挂载改为父目录,避免匿名卷覆盖

mqy20260511
humanleft 2 tygodni temu
rodzic
commit
7064feef6a
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5
    1
      deploy/scripts/start-taos-explorer.sh

+ 5
- 1
deploy/scripts/start-taos-explorer.sh Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz