-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
191 lines (176 loc) · 4.8 KB
/
docker-compose.yml
File metadata and controls
191 lines (176 loc) · 4.8 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
services:
rabbitmq:
image: "rabbitmq:3-management"
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_USER: rabbitmq_user
RABBITMQ_DEFAULT_PASS: rabbitmq_password
ports:
- "15672:15672" # Management API port
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
networks:
- rabbitmq_network
postgres:
image: postgres:latest
restart: unless-stopped
environment:
POSTGRES_USER: postgres_user
POSTGRES_PASSWORD: postgress_password
POSTGRES_DB: data_processing
volumes:
- pg_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- postgres_network
start:
build: ./initial_publish
container_name: initial_publish
environment:
- RABBITMQ_QUEUE_OUTPUT=Ontologies
- RABBITMQ_HOST=rabbitmq
- POSTGRES_HOST=postgres
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgress_password
- POSTGRES_DB=data_processing
volumes:
- ./data/:/input/
# - ./data/ont_modules:/input1000
- ./data/ont_modules:/output
depends_on:
- rabbitmq
networks:
- rabbitmq_network
- postgres_network
modularization:
build: ./OAPT
restart: unless-stopped
deploy:
replicas: 2
environment:
- RABBITMQ_QUEUE_INPUT=Ontologies
- RABBITMQ_QUEUE_OUTPUT=Modules_Preprocess
- RABBITMQ_HOST=rabbitmq
- POSTGRES_HOST=postgres
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgress_password
- POSTGRES_DB=data_processing
volumes:
- ./data/ontologies:/input
- ./data/ont_modules:/app/output
depends_on:
- rabbitmq
- postgres
networks:
- rabbitmq_network
- postgres_network
modification:
build: ./OWL_Ontology_Modification/Modification
restart: unless-stopped
deploy:
replicas: 5
environment:
- RABBITMQ_QUEUE_INPUT=Modules_Modify
- RABBITMQ_QUEUE_OUTPUT=Modules_Preprocess
- RABBITMQ_HOST=rabbitmq
- POSTGRES_HOST=postgres
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgress_password
- POSTGRES_DB=data_processing
volumes:
- ./data/ont_modules:/input
- ./data/ont_modules:/output
depends_on:
- rabbitmq
- postgres
- modularization
networks:
- rabbitmq_network
- postgres_network
preprocess:
build: ./Preprocessing
restart: unless-stopped
deploy:
replicas: 2
environment:
- RABBITMQ_QUEUE_INPUT=Modules_Preprocess
- RABBITMQ_QUEUE_OUTPUT=Remove_Prefix
- RABBITMQ_HOST=rabbitmq
- POSTGRES_HOST=postgres
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgress_password
- POSTGRES_DB=data_processing
volumes:
- ./data/ont_modules:/input
- ./data/processed_modules:/output
depends_on:
- rabbitmq
- postgres
networks:
- rabbitmq_network
- postgres_network
prefix_removal:
build: ./prefix_removal
restart: unless-stopped
environment:
- RABBITMQ_QUEUE_INPUT=Remove_Prefix
- RABBITMQ_QUEUE_OUTPUT=Translation
volumes:
- ./data/processed_modules:/input
- ./data/prefixless_modules:/output
depends_on:
- rabbitmq
- postgres
- preprocess
networks:
- rabbitmq_network
- postgres_network
translation:
build: ./Translation
restart: unless-stopped
environment:
- RABBITMQ_QUEUE_INPUT=Translation
- RABBITMQ_QUEUE_OUTPUT=filtering
volumes:
- ./data/prefixless_modules:/input
- ./data/triples:/output
networks:
- rabbitmq_network
- postgres_network
filtering:
build: ./Tokenization
restart: unless-stopped
deploy:
replicas: 6
environment:
- RABBITMQ_QUEUE_INPUT=filtering
- RABBITMQ_QUEUE_OUTPUT=Modules_Modify
volumes:
- ./data/triples:/input
- ./data/filtered_modules/consistent/500:/output500
- ./data/filtered_modules/consistent/1000:/output1000
- ./data/filtered_modules/consistent/4000:/output4000
- ./data/filtered_modules/inconsistent/500:/output500InC
- ./data/filtered_modules/inconsistent/1000:/output1000InC
- ./data/filtered_modules/inconsistent/4000:/output4000InC
- ./data/filtered_modules/overThreshold:/output10000
- ./data/filtered_modules/overThreshold:/output10000InC
#
embedding:
build: ./embed
restart: unless-stopped
deploy:
replicas: 10
volumes:
- ./data/ont_modules_inconsistent_rdf:/input_inconsistent/
- ./data/ont_modules:/input_consistent/
- ./data/embeddings_full:/output/
networks:
- rabbitmq_network
volumes:
pg_data:
networks:
rabbitmq_network:
driver: bridge
postgres_network:
driver: bridge