-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.25 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
services:
ml-api:
image: rudra2006/spam-ml-api:latest
build:
context: .
dockerfile: backend/Dockerfile.api
container_name: spam_ml_api
ports:
- "5000:5000"
environment:
- FLASK_PORT=5000
- MODEL_PATH=linear_svm_model.pkl
- VECTORIZER_PATH=tfidf_vectorizer.pkl
- LABEL_ENCODER_PATH=label_encoder.pkl
networks:
- spam_network
restart: unless-stopped
node-backend:
image: rudra2006/spam-node-backend:latest
build:
context: ./backend
dockerfile: Dockerfile.node
container_name: spam_node_backend
ports:
- "3000:3000"
environment:
- PORT=3000
- API=http://ml-api:5000/predict
- MONGODB_URI=${MONGODB_URI}
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRES_IN=${JWT_EXPIRES_IN:-7d}
depends_on:
- ml-api
networks:
- spam_network
restart: unless-stopped
frontend:
image: rudra2006/spam-frontend:latest
build:
context: ./frontend
dockerfile: Dockerfile
args:
- VITE_API_URI=/predict
container_name: spam_frontend
ports:
- "80:80"
depends_on:
- node-backend
networks:
- spam_network
restart: unless-stopped
networks:
spam_network:
driver: bridge