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