-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.17 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
version: '3.8'
services:
web-app:
build:
context: ./web-app
dockerfile: Dockerfile
ports:
- "5005:5000"
depends_on:
- machine-learning-client
- mongodb
volumes:
- ./web-app:/app
environment:
- ML_CLIENT_URL=http://machine-learning-client:5000
- MONGO_URI=mongodb://mongodb:27017
- FLASK_ENV=development
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web-app
ports:
- "80:80"
machine-learning-client:
build:
context: ./machine-learning-client
dockerfile: Dockerfile
ports:
- "5006:5000"
depends_on:
- mongodb
volumes:
- ./machine-learning-client:/app
environment:
- MONGO_URI=mongodb://mongodb:27017
- INFERENCE_SERVER_URL=https://detect.roboflow.com
- ROBOFLOW_API_KEY=ogLxH2CgV5m0vTm5ZCii
- ROBOFLOW_MODEL_ID=rock-paper-scissors-sxsw/14
mongodb:
image: mongo
container_name: mongodb
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
volumes:
mongodb_data: