37 lines
840 B
YAML
37 lines
840 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./backend:/app
|
|
- music_data:/app/music
|
|
- upload_data:/app/uploads
|
|
environment:
|
|
- DATABASE_URL=sqlite:///./app.db
|
|
- MUSIC_DIR=./music
|
|
- UPLOAD_DIR=./uploads
|
|
- STATIC_DIR=./static
|
|
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://0.0.0.0:5173,http://0.0.0.0:3000,*
|
|
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
|
|
|
web:
|
|
build:
|
|
context: ./web
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5173:5173"
|
|
volumes:
|
|
- ./web:/app
|
|
- /app/node_modules
|
|
environment:
|
|
- VITE_API_URL=http://localhost:8000
|
|
command: npm run dev -- --host
|
|
|
|
volumes:
|
|
music_data:
|
|
upload_data: |