-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 1 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
version: '3.8'
services:
app:
build: .
container_name: modelsentry-app
ports:
- '3000:3000'
environment:
- NODE_ENV=development
- PORT=3000
- MONGODB_URI=mongodb://db:27017/ml_serving_db
- REDIS_HOST=redis
- REDIS_PORT=6379
- JWT_SECRET=development_secret_keys_modelsentry_auth_32_chars_long
- JWT_EXPIRES_IN=7d
- RATE_LIMIT_WINDOW_MS=900000
- RATE_LIMIT_MAX_REQUESTS=1000 # High limits for local development/dashboard play
- LOG_LEVEL=debug
# Optional: Add your Hugging Face API key here to enable real AI sentiment predictions
- HF_API_KEY=
depends_on:
- db
- redis
restart: always
db:
image: mongo:6.0
container_name: modelsentry-db
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
restart: always
redis:
image: redis:7-alpine
container_name: modelsentry-redis
ports:
- '6379:6379'
restart: always
volumes:
mongo_data:
driver: local