-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (34 loc) · 867 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
services:
backend:
build: .
image: clipmind-backend:prod
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ${CLIPMIND_VIDEO_DIR:-.}:/videos:ro
- ${CLIPMIND_MUSIC_DIR:-/dev/null}:/music:ro
env_file:
- .env
environment:
- CLIPMIND_VIDEO_DIR=/videos
- CLIPMIND_DATABASE_URL=sqlite:////app/data/clipmind.db
- CLIPMIND_CORS_ORIGINS=http://localhost:3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_URL: http://localhost:8000
image: clipmind-frontend:prod
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped