-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (114 loc) · 2.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
122 lines (114 loc) · 2.99 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
request-handler:
build:
context: ./platform/request-handler/
dockerfile: Dockerfile
ports:
- "64000:1000"
environment:
MONGO_URI: "mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASS}@mongo:27017/studentRequests?authSource=admin"
FIGURE_SERVICE_ADDR: "image-classifier:55000"
DATA_SERVICE_ADDR: "databased-classifier:56000"
LLM_SERVICE_ADDR: "http://ollama:11434"
LLM_MODEL_NAME: "qwen2.5-coder:32b"
depends_on:
mongo:
condition: service_healthy
databased-classifier:
condition: service_started
networks:
- app-network
restart: unless-stopped
mongo:
image: mongo:latest
ports:
- "27017:27017"
- "127.0.0.1:27018:27017"
volumes:
- mongo-data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASS}
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
networks:
- app-network
restart: unless-stopped
mongo-express:
image: mongo-express:latest
depends_on:
mongo:
condition: service_healthy
ports:
- "8081:8081"
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${ME_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_PASS}
ME_CONFIG_MONGODB_URL: "mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASS}@mongo:27017/admin?authSource=admin"
networks:
- app-network
restart: unless-stopped
databased-classifier:
build:
context: .
dockerfile: ./platform/databased-classifier/Dockerfile
environment:
- MLM_LICENSE_FILE=${MLM_LICENSE_FILE}
ports:
- "56000:56000"
networks:
- app-network
restart: unless-stopped
frontend:
build: ./platform/react-frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_BASE_URL=http://localhost:5001
stdin_open: true
tty: true
depends_on:
- backend
networks:
- app-network
backend:
build: ./platform/node-backend
ports:
- "5001:5001"
environment:
- MONGO_URI=mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASS}@mongo:27017/studentRequests?authSource=admin
- JWT_SECRET=${JWT_SECRET}
- CORS_OPTION=http://localhost:3000
depends_on:
mongo:
condition: service_healthy
networks:
- app-network
ollama:
build:
context: ./platform/ollama/
dockerfile: Dockerfile
container_name: ollama
volumes:
- ollama-data:/root/.ollama
# Uncomment the following if you have an NVIDIA GPU and want hardware acceleration
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
networks:
- app-network
restart: unless-stopped
volumes:
mongo-data:
ollama-data:
networks:
app-network:
driver: bridge