-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
133 lines (125 loc) · 3.85 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "2"
services:
flask:
image: datafabric-flask
build: ./web/flask
container_name: datafabric-flask
hostname: datafabric-flask
depends_on:
- redis
- mysql
- mongo
- recommender
- rabbitmq
networks:
datafabric_network:
ipv4_address: 172.22.0.2
ports:
- 5000:5000
volumes:
- ./web/flask/flask-share:/flask-share
- ./web/flask/datafabric.py:/datafabric.py
- ./web/flask/datafabric.log:/datafabric.log
- ./web/flask/flask_config.json:/flask_config.json
- ./web/flask/static:/static
- ./web/flask/template:/template
- ./common/InternalDB:/InternalDB
- ./common/InternalMQ:/InternalMQ
- ./common/DBMSAccessor:/DBMSAccessor
- ./web/flask/DatafabricManager:/DatafabricManager
- ./web/flask/RecommenderService:/RecommenderService
- ./web/flask/DataIntegrationService:/DataIntegrationService
- ./web/flask/DatafabricTools:/DatafabricTools
- ./test:/test
mem_limit: 4096MB
redis:
image: redis:7.0.0
container_name: datafabric-redis
hostname: datafabric-redis
networks:
datafabric_network:
ipv4_address: 172.22.0.3
mem_limit: 4096MB
volumes:
- ./persistent_storage/redis:/data
mysql:
image: mysql:8.0.29
container_name: datafabric-mysql
hostname: datafabric-mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
networks:
datafabric_network:
ipv4_address: 172.22.0.4
volumes:
- ./persistent_storage/mysql/mysql-data:/var/lib/mysql
- ./conf/mysql/conf:/etc/mysql/conf.d
mem_limit: 4096MB
mongo:
image: mongo:5.0.8
container_name: datafabric-mongo
hostname: datafabric-mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
datafabric_network:
ipv4_address: 172.22.0.5
volumes:
- ./persistent_storage/mongo/mongo-data:/data/db
- ./persistent_storage/mongo/conf:/data/configdb
mem_limit: 4096MB
recommender:
image: datafabric-recommender
build: ./recommender
container_name: datafabric-recommender
hostname: datafabric-recommender
depends_on:
- mongo
user: root
environment:
GRANT_SUDO: "yes"
volumes:
- ./recommender/recommender_microservice.py:/home/jovyan/recommender_microservice.py
- ./recommender/recommender_microservice.log:/home/jovyan/recommender_microservice.log
- ./recommender/jupyter_work:/home/jovyan/work
networks:
datafabric_network:
ipv4_address: 172.22.0.6
mem_limit: 4096MB
rabbitmq:
image: rabbitmq:3.9.10-management
container_name: datafabric-rabbitmq
hostname: datafabric-rabbitmq
networks:
datafabric_network:
ipv4_address: 172.22.0.7
volumes:
- ./conf/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./persistent_storage/rabbitmq:/var/lib/rabbitmq
mem_limit: 1024MB
data-integration:
image: datafabric-data-integration
build: ./data_integration
container_name: datafabric-data-integration
hostname: datafabric-data-integration
depends_on:
- rabbitmq
volumes:
- ./data_integration/microservice.py:/microservice.py
- ./data_integration/microservice.log:/microservice.log
- ./data_integration/task_requests:/task_requests
- ./data_integration/task_logs:/task_logs
- ./data_integration/integration_results:/integration_results
- ./data_integration/data_serving:/data_serving
- ./data_integration/DataIntegrator:/DataIntegrator
- ./common/DBMSAccessor:/DBMSAccessor
networks:
datafabric_network:
ipv4_address: 172.22.0.8
mem_limit: 4096MB
networks:
datafabric_network:
external:
name: datafabric_network