fix: use bind mount instead of named volume for data persistence

- Changed from Docker named volume to bind mount (./data:/app/data)
- Data files now visible in deployment directory (/root/nofx/data/)
- Easier to backup, inspect, and manage data files directly
This commit is contained in:
tinkle-community
2025-12-09 20:09:48 +08:00
parent 32d420dace
commit 0c744c4954

View File

@@ -17,8 +17,8 @@ services:
ports:
- "${NOFX_BACKEND_PORT:-8080}:8080"
volumes:
- nofx-data:/app/data
- nofx-logs:/app/decision_logs
- ./data:/app/data
- ./decision_logs:/app/decision_logs
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
@@ -54,9 +54,3 @@ services:
networks:
nofx-network:
driver: bridge
volumes:
nofx-data:
name: nofx-data
nofx-logs:
name: nofx-logs