-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (81 loc) · 1.89 KB
/
docker-compose.yml
File metadata and controls
85 lines (81 loc) · 1.89 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
79
80
81
82
83
84
85
services:
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:latest
container_name: real-estate-game_qdrant
ports:
- "6333:6333" # REST API
- "6334:6334" # gRPC API (optional)
volumes:
- qdrant_data:/qdrant/storage
environment:
- QDRANT_SERVICE_GRPC_PORT=6334
networks:
- real-estate-game_network
restart: unless-stopped
labels:
- "project=real-estate-game"
- "service=qdrant"
# Superlinked Server
superlinked:
build:
context: ./superlinked_app
dockerfile: Dockerfile
container_name: real-estate-game_superlinked
env_file:
- ./superlinked_app/.env
environment:
- GPU_EMBEDDING_THRESHOLD=1
ports:
- "8080:8080"
volumes:
- ./data:/app/data
networks:
- real-estate-game_network
depends_on:
- qdrant
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
labels:
- "project=real-estate-game"
- "service=superlinked"
# Wait for backend service to be ready
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Frontend Next.js App
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: real-estate-game_frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- real-estate-game_network
depends_on:
- superlinked
restart: unless-stopped
labels:
- "project=real-estate-game"
- "service=frontend"
networks:
real-estate-game_network:
name: real-estate-game_network
volumes:
qdrant_data:
labels:
- "project=real-estate-game"
- "service=qdrant"