-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.46 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
version: "3"
services:
database-service:
container_name: db-service
image: iamchaitanyakulkarni/dbservice:1
restart: always
build:
context: ./database-service
dockerfile: Dockerfile
ports:
- "3000:3000"
links:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/StockPrediction
stock-service:
container_name: stock-service
image: iamchaitanyakulkarni/stockservice:2
restart: always
build:
context: ./stock-service
dockerfile: Dockerfile
ports:
- "4000:4000"
links:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017/StockPrediction
ui-service:
container_name: ui-service
image: iamchaitanyakulkarni/uiservice:4
restart: always
build:
context: ./ui-service
dockerfile: Dockerfile
ports:
- "5000:5000"
external_links:
- stock-service
- db-service
- prediction-service
environment:
- STOCKS_URL=http://stock-service:4000
- USERS_URL=http://db-service:3000
- PREDICTION_URL=prediction-service
prediction-service:
container_name: prediction-service
image: iamchaitanyakulkarni/predictionservice:3
restart: always
build:
context: ./stock_prediction
dockerfile: Dockerfile
ports:
- "5050:5050"
mongo:
container_name: mongo
image: mongo
volumes:
- ./data:/data/db
ports:
- "27017:27017"