-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
104 lines (99 loc) · 2.97 KB
/
docker-compose.yaml
File metadata and controls
104 lines (99 loc) · 2.97 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
services:
# Time Series Database
influxdb:
image: influxdb:2
container_name: influxdb
ports:
- '8086:8086'
- '9999:9999'
volumes:
- ./influxdb/data:/var/lib/influxdb2
- ./influxdb/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=influxpassword
- DOCKER_INFLUXDB_INIT_ORG=basyx
- DOCKER_INFLUXDB_INIT_BUCKET=basyx
- >-
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=S18VeAlq042B4naMX31oqIaSGmUmOLAC-DV3VIdkxDJuAhTXLTVFEchyTSmCcUAmB7Wu94KgExzV8gJaDjzR3Q==
restart: always
# Metrics Collector
telegraf:
image: telegraf:1.29.1
container_name: telegraf
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
hostname: basyx_host
restart: always
depends_on:
- influxdb
# MQTT Broker
mosquitto:
image: eclipse-mosquitto:2.0.15
container_name: mosquitto
ports:
- '1883:1883'
volumes:
- ./mosquitto:/mosquitto
healthcheck:
test: ["CMD-SHELL", mosquitto_sub -p 1883 -t 'topic' -C 1 -E -i probe -W 3]
interval: 5s
timeout: 10s
start_period: 1s
retries: 3
restart: always
# MQTT Publisher (for testing)
mqtt-publisher:
build: ./mqtt-publisher
container_name: mqtt-publisher
depends_on:
- mosquitto
restart: always
aas-env:
image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
container_name: aas-env
volumes:
- ./aas:/application/aas
- ./basyx/aas-env.properties:/application/application.properties
ports:
- '8081:8081'
restart: always
depends_on:
aas-registry:
condition: service_healthy
sm-registry:
condition: service_healthy
aas-registry:
image: eclipsebasyx/aas-registry-log-mem:2.0.0-SNAPSHOT
container_name: aas-registry
ports:
- '8082:8080'
volumes:
- ./basyx/aas-registry.yml:/workspace/config/application.yml
restart: always
sm-registry:
image: eclipsebasyx/submodel-registry-log-mem:2.0.0-SNAPSHOT
container_name: sm-registry
ports:
- '8083:8080'
volumes:
- ./basyx/sm-registry.yml:/workspace/config/application.yml
restart: always
aas-web-ui:
image: eclipsebasyx/aas-gui:SNAPSHOT
container_name: aas-ui
ports:
- '3000:3000'
environment:
AAS_REGISTRY_PATH: http://localhost:8082/shell-descriptors
SUBMODEL_REGISTRY_PATH: http://localhost:8083/submodel-descriptors
AAS_REPO_PATH: http://localhost:8081/shells
SUBMODEL_REPO_PATH: http://localhost:8081/submodels
CD_REPO_PATH: http://localhost:8081/concept-descriptions
INFLUXDB_TOKEN: >-
S18VeAlq042B4naMX31oqIaSGmUmOLAC-DV3VIdkxDJuAhTXLTVFEchyTSmCcUAmB7Wu94KgExzV8gJaDjzR3Q==
restart: always
depends_on:
aas-env:
condition: service_healthy