mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 01:14:40 +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:
|
ports:
|
||||||
- "${NOFX_BACKEND_PORT:-8080}:8080"
|
- "${NOFX_BACKEND_PORT:-8080}:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- nofx-data:/app/data
|
- ./data:/app/data
|
||||||
- nofx-logs:/app/decision_logs
|
- ./decision_logs:/app/decision_logs
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
@@ -54,9 +54,3 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
nofx-network:
|
nofx-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
|
||||||
nofx-data:
|
|
||||||
name: nofx-data
|
|
||||||
nofx-logs:
|
|
||||||
name: nofx-logs
|
|
||||||
|
|||||||
Reference in New Issue
Block a user