-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.74 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.8'
services:
surrealdb:
image: surrealdb/surrealdb:v1.3.0
container_name: unlearning_surrealdb
entrypoint:
- surreal
- start
- --user
- root
- --pass
- root
- file:///mydata/surreal.db
ports:
- "8000:8000"
volumes:
- surreal_data:/mydata
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8000/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
ml_worker:
build:
context: ./ml_worker
dockerfile: Dockerfile
container_name: unlearning_ml_worker
ports:
- "50051:50051"
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
rust_gateway:
build:
context: .
dockerfile: rust_gateway/Dockerfile
container_name: unlearning_rust_gateway
ports:
- "8080:8080"
environment:
- SERVER_HOST=0.0.0.0
- SERVER_PORT=8080
- GRPC_ML_WORKER_ENDPOINT=http://ml_worker:50051
- SURREAL_DB_PATH=surrealdb://root:root@surrealdb:8000
- LANCEDB_URI=./data/lancedb
- NUM_SISA_SHARDS=4
depends_on:
surrealdb:
condition: service_healthy
ml_worker:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8080/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: unlearning_frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080
depends_on:
rust_gateway:
condition: service_healthy
restart: unless-stopped
volumes:
surreal_data: