abd44fe467
- 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.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: dashboard-backend
|
|
environment:
|
|
- DATABASE_HOST=${DATABASE_HOST:-localhost}
|
|
- DATABASE_PORT=${DATABASE_PORT:-3306}
|
|
- DATABASE_NAME=${DATABASE_NAME:-audio}
|
|
- DATABASE_USER=${DATABASE_USER:-root}
|
|
- DATABASE_PASSWORD=${DATABASE_PASSWORD:-root123}
|
|
- APP_NAME=${APP_NAME:-Audio Dashboard API}
|
|
- DEBUG=${DEBUG:-True}
|
|
- MEILISEARCH_URL=${MEILISEARCH_URL:-http://ec2-18-184-205-87.eu-central-1.compute.amazonaws.com:7700}
|
|
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-young9#!UJsD219921031}
|
|
- MEILISEARCH_INDEX=${MEILISEARCH_INDEX:-models}
|
|
ports:
|
|
- "8083:8000"
|
|
restart: unless-stopped
|
|
networks:
|
|
- audio-network
|
|
volumes:
|
|
- /data/project/autoeq/measurements:/data/project/autoeq/measurements
|
|
|
|
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
|
|
networks:
|
|
- audio-network
|
|
|
|
networks:
|
|
audio-network:
|
|
driver: bridge
|