-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
168 lines (152 loc) · 4.51 KB
/
compose.yaml
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
services:
# registry:
# image: eclipsebasyx/aas-registry:1.5.1
# container_name: AAS-POC-Registry
# ports:
# - 8082:4000
# environment:
# - basyxregistry_registry_backend=MongoDB
# - basyxcontext_contextpath=/registry
# - basyxcontext_contextport=4000
# - basyxcontext_accesscontrolalloworigin=*
# - basyxmongodb_dbname=admin
# - basyxmongodb_dbconnectionstring=mongodb://mongo:27017/
# - basyxmongodb_dbcollectionregistry=basyxregistry
# depends_on:
# mongo:
# condition: service_healthy
aas-registry:
image: eclipsebasyx/aas-registry-log-mongodb:2.0.0-SNAPSHOT
container_name: AAS-POC-AAS-Registry
ports:
- 8082:8080
volumes:
- ./aas-registry.yml:/workspace/config/application.yml
depends_on:
mongo:
condition: service_healthy
sm-registry:
image: eclipsebasyx/submodel-registry-log-mongodb:2.0.0-SNAPSHOT
container_name: AAS-POC-SM-Registry
ports:
- 8083:8080
volumes:
- ./sm-registry.yml:/workspace/config/application.yml
depends_on:
mongo:
condition: service_healthy
mongo:
image: mongo:5.0.10
container_name: AAS-POC-mongodb
# Provide mongo config
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
# Set health checks to wait until mongo has started
#volumes:
# - ./data-vol:/data/db
healthcheck:
test: mongo
interval: 10s
start_period: 5s
retries: 5
# Maps tcp port to host
ports:
- 27017:27017
mqtt:
image: eclipse-mosquitto:2.0.15
container_name: AAS-POC-mqtt
ports:
- 1884:1884
volumes:
- ./mosquitto:/mosquitto/config
healthcheck:
test: ["CMD-SHELL", mosquitto_sub -p 1884 -t 'topic' -C 1 -E -i probe -W 3]
interval: 5s
retries: 3
start_period: 1s
timeout: 10s
aas-env:
image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
container_name: AAS-POC-ENV
volumes:
- ./aas-env.properties:/application/application.properties
- ./aas:/application/aas
ports:
- 8081:8081
depends_on:
mongo:
condition: service_healthy
mqtt:
condition: service_healthy
aas-registry:
condition: service_healthy
sm-registry:
condition: service_healthy
# aas:
# image: eclipsebasyx/aas-server:1.5.1
# container_name: AAS-POC-aas
# ports:
# - 8081:4001
# environment:
# - basyxaas_registry_path=http://registry:4000/registry/
# - basyxaas_aas_backend=MongoDB
# - basyxcontext_contextpath=/aasServer
# - basyxcontext_contextport=4001
# - basyxaas_aas_source=aasx/01_Festo.aasx
# - waiting_for=[{"host":"registry","port":"4000"}]
# - basyxcontext_accesscontrolalloworigin=*
# - basyxmongodb_dbname=admin
# - basyxmongodb_dbconnectionstring=mongodb://mongo:27017/
# - basyxmongodb_dbcollectionaas=basyxaas
# - basyxmongodb_dbcollectionsubmodels=basyxsubmodel
# depends_on:
# mongo:
# condition: service_healthy
aas-discovery:
image: eclipsebasyx/aas-discovery:2.0.0-SNAPSHOT
container_name: AAS-POC-discovery
ports:
- 8084:8081
volumes:
- ./aas-discovery.properties:/application/application.properties
depends_on:
mongo:
condition: service_healthy
# gui:
# image: eclipsebasyx/aas-gui:v2-240515
# container_name: AAS-POC-aasGui
# ports:
# - 3001:3000
# environment:
# - VITE_REGISTRY_PATH="http://localhost:4000/registry"
aas-web-ui_v2:
image: eclipsebasyx/aas-gui:v2-240515
container_name: aas-web-ui_v2
ports:
- "3000:3000"
environment:
AAS_REGISTRY_PATH: "http://localhost:8082"
SUBMODEL_REGISTRY_PATH: "http://localhost:8083"
AAS_DISCOVERY_PATH: "http://localhost:8084"
AAS_REPO_PATH: "http://localhost:8081/shells"
SUBMODEL_REPO_PATH: "http://localhost:8081/submodels"
CD_REPO_PATH: "http://localhost:8081/concept-descriptions"
restart: always
depends_on:
aas-env:
condition: service_healthy
databridge:
image: eclipsebasyx/databridge:1.0.0-SNAPSHOT
container_name: databridge
volumes:
- "./DatabridgeConfig:/usr/share/config"
depends_on:
aas-env:
condition: service_healthy
mongo:
condition: service_healthy
aas-registry:
condition: service_healthy
restart: always