mirror of
https://github.com/andrey271192/amnezia_web.git
synced 2026-09-20 14:41:59 +00:00
fix(community): mount real host data dir into helper
Helper used DATA_DIR (in-container path) for bind-mount source. Daemon created phantom /data on host, log + staging went there instead of /opt/amnezia-admin-data. Resolve HOST_DATA_DIR via env or docker inspect; place staging under DATA_DIR so single mount exposes both log and install.sh to helper. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -274,6 +274,7 @@ docker run -d --name "${CONTAINER_NAME}" --restart unless-stopped \
|
||||
-p "${HOST_PORT}:3980" \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v "${DATA_DIR}:/data" \
|
||||
-e "HOST_DATA_DIR=${DATA_DIR}" \
|
||||
"${RUN_ENV[@]}" \
|
||||
amnezia-admin:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user