-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yml
199 lines (191 loc) · 6.98 KB
/
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
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
networks:
mnestix-network:
driver: bridge
name: mnestix-network
volumes:
mnestix-database:
services:
mnestix-browser:
container_name: mnestix-browser
image: mnestix/mnestix-browser:latest
profiles: [ "", "frontend", "tests" ]
build:
dockerfile: Dockerfile
target: production
ports:
- '3000:3000'
environment:
REGISTRY_API_URL: 'https://aas-registry:8083/' # 'https://registry.dpp40-2-v2.industrialdigitaltwin.org/'
SUBMODEL_REGISTRY_API_URL: 'http://submodel-registry:8084'
DISCOVERY_API_URL: 'http://mnestix-api:5064/discovery'
AAS_REPO_API_URL: 'http://mnestix-api:5064/repo'
SUBMODEL_REPO_API_URL: 'http://mnestix-api:5064/repo'
MNESTIX_BACKEND_API_URL: 'http://mnestix-api:5064'
AAS_LIST_FEATURE_FLAG: "true"
TRANSFER_FEATURE_FLAG: "false"
COMPARISON_FEATURE_FLAG: "true"
AUTHENTICATION_FEATURE_FLAG: "false"
LOCK_TIMESERIES_PERIOD_FEATURE_FLAG: "true"
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET:-verySecureNextAuthSecret}
depends_on:
aas-environment:
condition: service_healthy # only after the healthcheck in aas is successful, the mnestix container is being created
networks:
- mnestix-network
volumes:
- mnestix-database:/app/prisma/database
mnestix-api:
image: mnestix/mnestix-api:1.2.3
container_name: mnestix-api
profiles: [ "", "backend", "tests" ]
ports:
- '5064:5064'
environment:
# API key authorization
CustomerEndpointsSecurity__ApiKey: ${MNESTIX_BACKEND_API_KEY:-verySecureApiKey}
# Connection to Repository Service:
ReverseProxy__Clusters__aasRepoCluster__Destinations__destination1__Address: 'http://aas-environment:8081/'
ReverseProxy__Clusters__submodelRepoCluster__Destinations__destination1__Address: 'http://aas-environment:8081/'
ReverseProxy__Clusters__discoveryCluster__Destinations__destination1__Address: 'http://aas-discovery:8081/'
# Features Configuration
Features__AasRegistryMiddleware: "true"
Features__UseMongoDbBasedAasIdStorage: "true"
Features__AllowRetrievingAllShellsAndSubmodels: "true"
Features__UseAuthentication: "false"
# InfluxDB Configuration
# URL to specify the host and port where InfluxDB is running:
ReverseProxy__Clusters__influxCluster__Destinations__destination1__Address: 'http://example/'
# Token:
ReverseProxy__Routes__InfluxRoute__Transforms__1__Set: 'Token '
# MongoDB Configuration
BasyxDbConnectionConfiguration__MongoConnectionString: 'mongodb://mongoAdmin:mongoPassword@mongodb:27017/?authSource=admin'
BasyxDbConnectionConfiguration__DatabaseName: basyxdb
BasyxDbConnectionConfiguration__AasCollectionName: 'aas-repo'
# ASP.NET Core URLs
ASPNETCORE_URLS: 'http://+:5064'
depends_on:
aas-environment:
condition: service_healthy # only after the healthcheck in aas is successful, the mnestix container is being created
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '100m'
networks:
- mnestix-network
mongodb:
image: mongo:5
container_name: mongodb
profiles: [ "", "basyx", "tests" ]
environment:
MONGO_INITDB_ROOT_USERNAME: mongoAdmin
MONGO_INITDB_ROOT_PASSWORD: mongoPassword
# Set health checks to wait until mongo has started
healthcheck:
test: echo "db.runCommand("ping").ok" | mongosh mongodb:27017/test --quiet
interval: 3s
timeout: 3s
retries: 5
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '100m'
networks:
- mnestix-network
aas-environment:
image: eclipsebasyx/aas-environment:2.0.0-milestone-03.1
container_name: aas-environment
profiles: [ "", "basyx", "tests" ]
depends_on:
- mongodb
environment:
# MongoDb configuration for Basyx Repository
BASYX__BACKEND: MongoDB
SPRING__DATA__MONGODB__HOST: mongodb
SPRING__DATA__MONGODB__DATABASE: basyxdb
SPRING__DATA__MONGODB__authentication-database: admin
SPRING__DATA__MONGODB__USERNAME: mongoAdmin
SPRING__DATA__MONGODB__PASSWORD: mongoPassword
SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE: 100000KB
SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE: 100000KB
# Allow mnestix frontend and backend to call basyx
BASYX_CORS_ALLOWED-ORIGINS: '*'
BASYX_CORS_ALLOWED-METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
healthcheck: # check the endpoint for a valid response (service ready)
test: curl -f http://localhost:8081/actuator/health
interval: 30s
timeout: 10s
retries: 6
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '100m'
networks:
- mnestix-network
aas-discovery:
image: eclipsebasyx/aas-discovery:2.0.0-milestone-03.1
container_name: aas-discovery
profiles: [ "", "basyx", "tests" ]
depends_on:
- mongodb
environment:
BASYX__BACKEND: MongoDB
SPRING__DATA__MONGODB__HOST: mongodb
SPRING__DATA__MONGODB__DATABASE: basyxdb
SPRING__DATA__MONGODB__authentication-database: admin
SPRING__DATA__MONGODB__USERNAME: mongoAdmin
SPRING__DATA__MONGODB__PASSWORD: mongoPassword
BASYX__CORS__ALLOWED-ORIGINS: '*'
BASYX__CORS__ALLOWED-METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
healthcheck: # check the endpoint for a valid response (service ready)
test: curl -f http://localhost:8081/actuator/health
interval: 30s
timeout: 10s
retries: 6
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '100m'
networks:
- mnestix-network
aas-registry:
image: eclipsebasyx/aas-registry-log-mongodb:2.0.0-milestone-03.1
container_name: aas-registry
profiles: [ "", "basyx" ]
ports:
- '8083:8080'
depends_on:
- mongodb
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongoAdmin:mongoPassword@mongodb:27017/?authSource=admin
BASYX__CORS__ALLOWED-ORIGINS: '*'
BASYX__CORS__ALLOWED-METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
healthcheck: # check the endpoint for a valid response (service ready)
test: curl -f http://localhost:8080/actuator/health
interval: 30s
timeout: 10s
retries: 6
networks:
- mnestix-network
submodel-registry:
image: eclipsebasyx/submodel-registry-log-mongodb:2.0.0-milestone-03.1
container_name: submodel-registry
profiles: [ "", "basyx" ]
ports:
- '8084:8080'
depends_on:
- mongodb
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongoAdmin:mongoPassword@mongodb:27017/?authSource=admin
BASYX__CORS__ALLOWED-ORIGINS: '*'
BASYX__CORS__ALLOWED-METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
healthcheck: # check the endpoint for a valid response (service ready)
test: curl -f http://localhost:8080/actuator/health
interval: 30s
timeout: 10s
retries: 6
networks:
- mnestix-network