Update docker-compose.yml to use user home directory for data and logs mapping; fix CSS and JS file paths in index.html for consistent resource loading.

This commit is contained in:
liu
2026-02-03 11:47:48 +08:00
parent f3b6d6d948
commit 765c6f0021
3 changed files with 7 additions and 6 deletions

View File

@@ -7,8 +7,9 @@ services:
ports:
- "48081:48081"
volumes:
- ./data:/app/data
- ./logs:/app/logs
# 默认映射到用户家目录Linux/Mac 为 $HOME未设置时为当前目录
- ${HOME:-.}/sftp-manager/data:/app/data
- ${HOME:-.}/sftp-manager/logs:/app/logs
environment:
- SPRING_PROFILES_ACTIVE=prod
restart: unless-stopped