mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user