2026-03-17 14:20:08 +08:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
backend:
|
|
|
|
|
build:
|
|
|
|
|
context: ./backend
|
|
|
|
|
dockerfile: Dockerfile
|
2026-03-20 09:31:24 +08:00
|
|
|
container_name: dashboard-backend
|
2026-03-17 14:20:08 +08:00
|
|
|
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}
|
2026-06-09 19:44:51 +08:00
|
|
|
- APP_ENV=${APP_ENV:-production}
|
|
|
|
|
- MEILISEARCH_URL=${MEILISEARCH_URL:-http://ip-172-31-22-170.eu-central-1.compute.internal:7700}
|
2026-03-17 14:20:08 +08:00
|
|
|
- MEILISEARCH_API_KEY=${MEILISEARCH_API_KEY:-young9#!UJsD219921031}
|
|
|
|
|
- MEILISEARCH_INDEX=${MEILISEARCH_INDEX:-models}
|
|
|
|
|
ports:
|
|
|
|
|
- "8083:8000"
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- audio-network
|
2026-03-20 09:31:24 +08:00
|
|
|
volumes:
|
2026-06-09 19:44:51 +08:00
|
|
|
- /data/project/dashboard/upload:/data/project/dashboard/upload
|
2026-03-17 14:20:08 +08:00
|
|
|
|
|
|
|
|
frontend:
|
2026-03-20 09:31:24 +08:00
|
|
|
image: nginx:alpine
|
|
|
|
|
container_name: dashboard-frontend
|
2026-03-17 14:20:08 +08:00
|
|
|
ports:
|
|
|
|
|
- "8082:80"
|
2026-03-20 09:31:24 +08:00
|
|
|
volumes:
|
|
|
|
|
- /data/project/dashboard/frontend/dist:/usr/share/nginx/html:ro
|
|
|
|
|
- /data/project/dashboard/frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
2026-03-17 14:20:08 +08:00
|
|
|
depends_on:
|
|
|
|
|
- backend
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
networks:
|
|
|
|
|
- audio-network
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
audio-network:
|
|
|
|
|
driver: bridge
|