Refactor Docker setup and remove unused files

- Updated docker-compose.yml to rename backend and frontend container names for clarity.
- Added volume mappings for frontend and backend services to persist data.
- Removed obsolete files related to frequency response extraction, including Python scripts and output data files.
- Adjusted backend port configuration in main.py to align with new service architecture.
- Enhanced logging for file upload paths in models.py for better traceability.
This commit is contained in:
yangy
2026-03-20 09:31:24 +08:00
parent 90aec37461
commit abd44fe467
15 changed files with 878 additions and 6607 deletions
+8 -5
View File
@@ -5,7 +5,7 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
container_name: audio-dashboard-backend
container_name: dashboard-backend
environment:
- DATABASE_HOST=${DATABASE_HOST:-localhost}
- DATABASE_PORT=${DATABASE_PORT:-3306}
@@ -22,14 +22,17 @@ services:
restart: unless-stopped
networks:
- audio-network
volumes:
- /data/project/autoeq/measurements:/data/project/autoeq/measurements
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: audio-dashboard-frontend
image: nginx:alpine
container_name: dashboard-frontend
ports:
- "8082:80"
volumes:
- /data/project/dashboard/frontend/dist:/usr/share/nginx/html:ro
- /data/project/dashboard/frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- backend
restart: unless-stopped