-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 846 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
services:
# Backend FastAPI service
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: music-app-backend
ports:
- "8000:8000"
volumes:
- ./backend/uploads:/app/uploads
- ./backend/songs.db:/app/songs.db
environment:
- PYTHONPATH=/app
restart: unless-stopped
networks:
- music-app-network
# Frontend Nginx service
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: music-app-frontend
ports:
- "3000:80"
depends_on:
- backend
restart: unless-stopped
networks:
- music-app-network
# Networks
networks:
music-app-network:
driver: bridge
# Volumes for persistent data
volumes:
uploads:
database: