Spaces:
Sleeping
Sleeping
Delete docker-compose.yml
Browse files- docker-compose.yml +0 -34
docker-compose.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
version: '3.8'
|
2 |
-
|
3 |
-
services:
|
4 |
-
madverse-api:
|
5 |
-
build: .
|
6 |
-
ports:
|
7 |
-
- "8000:8000"
|
8 |
-
environment:
|
9 |
-
- MADVERSE_API_KEY=${MADVERSE_API_KEY:-madverse-music-api-key-2024}
|
10 |
-
volumes:
|
11 |
-
# Optional: Mount model files if you want to update them without rebuilding
|
12 |
-
- ./pytorch_model.bin:/app/pytorch_model.bin:ro
|
13 |
-
- ./config.json:/app/config.json:ro
|
14 |
-
restart: unless-stopped
|
15 |
-
healthcheck:
|
16 |
-
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
17 |
-
interval: 30s
|
18 |
-
timeout: 10s
|
19 |
-
retries: 3
|
20 |
-
start_period: 60s
|
21 |
-
|
22 |
-
# Optional: Add nginx proxy for production
|
23 |
-
nginx:
|
24 |
-
image: nginx:alpine
|
25 |
-
ports:
|
26 |
-
- "80:80"
|
27 |
-
- "443:443"
|
28 |
-
volumes:
|
29 |
-
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
30 |
-
depends_on:
|
31 |
-
- madverse-api
|
32 |
-
restart: unless-stopped
|
33 |
-
profiles:
|
34 |
-
- production
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|