forked from FilipeJrd/Cartola-MicroServices
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (65 loc) · 1.43 KB
/
docker-compose.yml
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
version: "3.1"
services:
naming-service:
build: ./naming_service
image: namingservice
ports:
- 4000:4000
mongo:
image: mongo
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_DATABASE: cartola
restapi:
build: ./cartola-rest-api
image: cartolaapi
command: bash -c "sleep 5 && /go/bin/cartola-rest-api"
ports:
- 3011:3000
depends_on:
- mongo
- naming-service
scrapper:
build: ./cartola-data-scrapper
image: cartolascrapper
command: bash -c "sleep 10 && /go/bin/cartola-data-scrapper"
depends_on:
- restapi
- naming-service
processor:
build: ./cartola-data-processor
image: 5amsolutions/processor
command: bash -c "sleep 5 && npm start"
ports:
- 3000:3000
depends_on:
- restapi
- mongo
- naming-service
login:
build: ./login
image: login
command: bash -c "sleep 5 && python ./webservice.py"
ports:
- 3005:3000
depends_on:
- naming-service
authentication:
build: ./authentication_middleware
image: authenticationmiddleware
command: bash -c "sleep 5 && npm start"
ports:
- 3002:3002
depends_on:
- naming-service
- login
interface:
build: ./Cartola-Interface
image: frontend
command: bash -c "sleep 10 && npm start"
ports:
- 80:3000
depends_on:
- authentication