forked from mm-ksha-PersonalOrg/DataEnginePublicRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
202 lines (191 loc) · 7.56 KB
/
docker-compose.yml
File metadata and controls
202 lines (191 loc) · 7.56 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
191
192
193
194
195
196
197
198
199
200
201
networks:
dataengine-network:
name: dataengine-network
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "8080:80"
volumes:
- ./example/nginx/html:/usr/share/nginx/html
- ./example/nginx/default.conf.template:/etc/nginx/templates/default.conf.template
restart: always
depends_on:
aas-template-registry:
condition: service_healthy
sm-template-regisry:
condition: service_healthy
template-repository:
condition: service_healthy
networks:
- dataengine-network
twinengine-dataengine:
build:
context: ./source
dockerfile: ./AAS.TwinEngine.DataEngine/Dockerfile
image: twinengine-dataengine:latest
ports:
- '8085:8080'
container_name: twinengine-dataengine
depends_on:
- mongo
restart: always
environment:
- AasEnvironment__DataEngineRepositoryBaseUrl=http://localhost:8080
- AasEnvironment__AasEnvironmentRepositoryBaseUrl=http://template-repository:8081
- AasEnvironment__SubModelRepositoryPath=submodels
- AasEnvironment__AasRegistryBaseUrl=http://aas-template-registry:8080
- AasEnvironment__AasRegistryPath=shell-descriptors
- AasEnvironment__SubModelRegistryBaseUrl=http://sm-template-regisry:8080
- AasEnvironment__SubModelRegistryPath=submodel-descriptors
- AasEnvironment__AasRepositoryPath=shells
- AasEnvironment__SubmodelRefPath=submodel-refs
- AasEnvironment__CustomerDomainUrl=https://mm-software.com
- TemplateMappingRules__SubmodelTemplateMappings__0__templateId=https://admin-shell.io/idta/SubmodelTemplate/Reliability/1/0
- TemplateMappingRules__SubmodelTemplateMappings__0__pattern__0=Reliability
- TemplateMappingRules__SubmodelTemplateMappings__1__templateId=https://admin-shell.io/idta/SubmodelTemplate/DigitalNameplate/3/0
- TemplateMappingRules__SubmodelTemplateMappings__1__pattern__0=Nameplate
- TemplateMappingRules__SubmodelTemplateMappings__2__templateId=https://admin-shell.io/idta/SubmodelTemplate/ContactInformation/1/0
- TemplateMappingRules__SubmodelTemplateMappings__2__pattern__0=ContactInformation
- TemplateMappingRules__ShellTemplateMappings__0__templateId=https://mm-software.com/aas/aasTemplate
- TemplateMappingRules__ShellTemplateMappings__0__pattern__0=
- TemplateMappingRules__AasIdExtractionRules__0__pattern=Regex
- TemplateMappingRules__AasIdExtractionRules__0__index=6
- TemplateMappingRules__AasIdExtractionRules__0__separator=/
- Semantics__MultiLanguageSemanticPostfixSeparator=_
- Semantics__SubmodelElementIndexContextPrefix=_aastwinengineindex_
- Semantics__InternalSemanticId=InternalSemanticId
- AasxOptions__RootFolder=aasx
- AasRegistryTimeTrigger__ShellDescriptorCron=0 */3 * * * *
- AasRegistryTimeTrigger__IsPreComputed=false
- MultiPluginConflictOption__HandlingMode=TakeFirst
- PluginConfig__Plugins__0__PluginName=Plugin1
- PluginConfig__Plugins__0__PluginUrl=http://twinengine-plugin1:8080
- PluginConfig__Plugins__1__PluginName=Plugin2
- PluginConfig__Plugins__1__PluginUrl=http://twinengine-plugin2:8080
networks:
- dataengine-network
twinengine-plugin1:
build:
context: ../AasTwin.Plugin/source
dockerfile: ./Aas.TwinEngine.Plugin.ReferencePlugin/Dockerfile
image: twinengine-plugin:latest
ports:
- '8086:8080'
container_name: twinengine-plugin1
restart: always
volumes:
- ./example/plugin1/mock-metadata.json:/app/Data/mock-metadata.json
- ./example/plugin1/mock-submodel-data.json:/app/Data/mock-submodel-data.json
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Semantics__IndexContextPrefix=_aastwinengineindex_
- Capabilities__HasShellDescriptor=true
- Capabilities__HasAssetInformation=true
networks:
- dataengine-network
twinengine-plugin2:
image: twinengine-plugin:latest
container_name: twinengine-plugin2
ports:
- '8087:8080'
restart: always
volumes:
- ./example/plugin2/mock-metadata.json:/app/Data/mock-metadata.json:ro
- ./example/plugin2/mock-submodel-data.json:/app/Data/mock-submodel-data.json
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Semantics__IndexContextPrefix=_aastwinengineindex_
- Capabilities__HasShellDescriptor=true
- Capabilities__HasAssetInformation=true
networks:
- dataengine-network
template-repository:
image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
container_name: template-repository
ports:
- "8081:8081"
volumes:
- ./example/aas:/application/aas
- ./example/basyx/aas-env.properties:/application/application.properties
environment:
BASYX_EXTERNALURL : http://localhost:8080
restart: always
depends_on:
aas-template-registry:
condition: service_healthy
sm-template-regisry:
condition: service_healthy
networks:
- dataengine-network
aas-template-registry:
image: eclipsebasyx/aas-registry-log-mongodb:2.0.0-SNAPSHOT
container_name: aas-template-registry
ports:
- '8082:8080'
restart: always
depends_on:
- mongo
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongoAdmin:mongoPassword@mongo:27017
networks:
- dataengine-network
sm-template-regisry:
image: eclipsebasyx/submodel-registry-log-mongodb:2.0.0-SNAPSHOT
container_name: sm-template-regisry
ports:
- '8083:8080'
depends_on:
- mongo
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongoAdmin:mongoPassword@mongo:27017
networks:
- dataengine-network
shell-template-creator:
image: curlimages/curl:latest
container_name: shell-template-creator
depends_on:
template-repository:
condition: service_healthy
entrypoint: >
sh -c '
echo "Waiting for template-repository to be ready...";
sleep 10;
curl -X POST http://template-repository:8081/shells \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"id\": \"https://mm-software.com/aas/aasTemplate\", \"assetInformation\": {\"assetKind\": \"Instance\"}, \"submodels\": [{\"type\": \"ModelReference\", \"keys\": [{\"type\": \"Submodel\", \"value\": \"Nameplate\"}]}, {\"type\": \"ModelReference\", \"keys\": [{\"type\": \"Submodel\", \"value\": \"ContactInformation\"}]}, {\"type\": \"ModelReference\", \"keys\": [{\"type\": \"Submodel\", \"value\": \"Reliability\"}]}], \"modelType\": \"AssetAdministrationShell\"}";
echo "Shell creation request sent.";
'
networks:
- dataengine-network
aas-web-ui:
image: eclipsebasyx/aas-gui:SNAPSHOT
container_name: aas-ui
volumes:
- ./example/logo:/usr/src/app/dist/Logo
environment:
AAS_REGISTRY_PATH: http://localhost:8080/shell-descriptors
SUBMODEL_REGISTRY_PATH: http://localhost:8080/submodel-descriptors
AAS_REPO_PATH: http://localhost:8080/shells
SUBMODEL_REPO_PATH: http://localhost:8080/submodels
CD_REPO_PATH: http://localhost:8080/concept-descriptions
BASE_PATH: "/aas-ui"
LOGO_PATH: "MM_Logo.svg"
PRIMARY_DARK_COLOR: "#EBECED"
PRIMARY_LIGHT_COLOR: "#00F2E5"
restart: always
depends_on:
template-repository:
condition: service_healthy
networks:
- dataengine-network
mongo:
image: mongo:6.0
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
networks:
- dataengine-network