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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user