fix(固资履历): 解决本地共享网盘Windows与Linux访问路径兼容性问题

This commit is contained in:
sophie committed 2026-07-14 11:07:40 +08:00
1 parent 202d626a7a
commit 49c149eb3e
8 files changed
+606 -20

No files matched your search

+7 -1
View File
@@ -49,7 +49,9 @@ services:
- EDKB_SOFFICE=${EDKB_SOFFICE:-/usr/bin/soffice}
# LibreOffice 单次格式转换超时(秒)
- EDKB_SOFFICE_TIMEOUT_SEC=${EDKB_SOFFICE_TIMEOUT_SEC:-600}
# 固资履历:必须注入 LOCAL_ROOT,避免只加载 .env.shared 时回退到 Linux 不可达的 UNC
- FIXED_ASSET_HISTORY_LOCAL_ROOT=${FIXED_ASSET_HISTORY_LOCAL_ROOT:-}
- FIXED_ASSET_HISTORY_SHARE_ROOT=${FIXED_ASSET_HISTORY_SHARE_ROOT:-}
# 允许容器访问宿主机服务 (如数据库)
extra_hosts:
- "host.docker.internal:host-gateway"
@@ -59,6 +61,10 @@ services:
volumes:
- ./oracle_client:/app/oracle_client:ro
- hxops_runtime_data:/app/data
# 固资履历:宿主机先 CIFS 挂载(scripts/mount_fixed_asset_history.sh),再 bind 进容器只读。
# test/prod 的 FIXED_ASSET_HISTORY_LOCAL_ROOT 分别指向对应路径;未使用的一侧为空目录无影响。
- /mnt/hxops-fixed-asset-history-test:/mnt/hxops-fixed-asset-history-test:ro
- /mnt/hxops-fixed-asset-history-prod:/mnt/hxops-fixed-asset-history-prod:ro
networks:
- ai-platform