-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.04 KB
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
44
45
46
47
48
49
50
51
52
53
services:
backend:
build:
context: ./apps/python-backend
dockerfile: Dockerfile
cache_from:
- python:3.11-slim
ports:
- "8000:8000"
volumes:
- ./apps/python-backend/images:/app/images
- ./apps/python-backend/embeddings:/app/embeddings
- clip_models_cache:/root/.cache/clip
- pip_cache:/root/.cache/pip
networks:
- app-network
dns:
- 8.8.8.8
- 8.8.4.4
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
frontend:
build:
context: .
dockerfile: ./apps/web/dockerfile
args:
- BACKEND_URL=http://backend:8000
ports:
- "3000:3000"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
- backend
networks:
- app-network
dns:
- 8.8.8.8
- 8.8.4.4
networks:
app-network:
driver: bridge
volumes:
clip_models_cache:
driver: local
pip_cache:
driver: local