-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (90 loc) · 3.16 KB
/
docker-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
services:
#wodt-dts-platform:
# image: ghcr.io/webbased-wodt/wodt-dts-platform:1.1.19
# container_name: wodt-dts-platform
# environment:
# EXPOSED_PORT: ${PLATFORM_EXPOSED_PORT}
# ports:
# - "${PLATFORM_EXPOSED_PORT}:${PLATFORM_EXPOSED_PORT}"
# healthcheck:
# test: wget http://localhost:${PLATFORM_EXPOSED_PORT}/wodt || exit 1
# interval: 30s
# timeout: 10s
# retries: 5
# start_period: 5m
# network_mode: "host"
ambulance-dt:
build: .
ports:
- "${AMBULANCE_MODULE_PORT}:${AMBULANCE_MODULE_PORT}"
#depends_on:
# wodt-dts-platform:
# condition: service_healthy
container_name: ambulance-dt
environment:
- THING_ID=${AMBULANCE_THING_ID}
- YAML_ONTOLOGY_PATH=${AMBULANCE_YAML_ONTOLOGY_PATH}
- PLATFORM_URL=${AMBULANCE_PLATFORM_URL}
- PHYSICAL_ASSET_ID=${AMBULANCE_PHYSICAL_ASSET_ID}
- MODULE_URI=${AMBULANCE_MODULE_URI}
- MODULE_PORT=${AMBULANCE_MODULE_PORT}
network_mode: "host"
traffic-light-a:
build: .
ports:
- "${TRAFFIC_LIGHT_A_MODULE_PORT}:${TRAFFIC_LIGHT_A_MODULE_PORT}"
#depends_on:
# wodt-dts-platform:
# condition: service_healthy
container_name: traffic-light-a
environment:
- THING_ID=${TRAFFIC_LIGHT_A_THING_ID}
- YAML_ONTOLOGY_PATH=${TRAFFIC_LIGHT_A_YAML_ONTOLOGY_PATH}
- PLATFORM_URL=${TRAFFIC_LIGHT_A_PLATFORM_URL}
- PHYSICAL_ASSET_ID=${TRAFFIC_LIGHT_A_PHYSICAL_ASSET_ID}
- MODULE_URI=${TRAFFIC_LIGHT_A_MODULE_URI}
- MODULE_PORT=${TRAFFIC_LIGHT_A_MODULE_PORT}
network_mode: "host"
healthcheck:
test: wget http://localhost:${TRAFFIC_LIGHT_A_MODULE_PORT}/dtkg || exit 1
interval: 30s
timeout: 10s
retries: 5
start_period: 5m
#traffic-light-b:
# image: ghcr.io/webbased-wodt/usecase-trafficlight-dt:1.1.1
# container_name: traffic-light-b
# network_mode: "host"
# depends_on:
# wodt-dts-platform:
# condition: service_healthy
# environment:
# EXPOSED_PORT: ${TRAFFIC_LIGHT_B_EXPOSED_PORT}
# PHYSICAL_ASSET_ID: ${TRAFFIC_LIGHT_B_PHYSICAL_ASSET_ID}
# PLATFORM_URL: ${TRAFFIC_LIGHT_B_PLATFORM_URL}
# ORG_GRADLE_PROJECT_ghPackageUsername: ${GITHUB_PACKAGES_USERNAME}
# ORG_GRADLE_PROJECT_ghPackagesPwd: ${GITHUB_PACKAGES_PASSWORD}
# healthcheck:
# test: wget http://localhost:${TRAFFIC_LIGHT_B_EXPOSED_PORT}/dtkg || exit 1
# interval: 30s
# timeout: 10s
# retries: 5
# start_period: 5m
#intersection-dt:
# image: ghcr.io/webbased-wodt/usecase-intersection-dt:1.0.4
# container_name: intersection-dt
# network_mode: "host"
# depends_on:
# wodt-dts-platform:
# condition: service_healthy
# traffic-light-a:
# condition: service_healthy
# traffic-light-b:
# condition: service_healthy
# environment:
# EXPOSED_PORT: ${INTERSECTION_EXPOSED_PORT}
# TRAFFIC_LIGHT_A_URI: ${TRAFFIC_LIGHT_A_URI}
# TRAFFIC_LIGHT_B_URI: ${TRAFFIC_LIGHT_B_URI}
# PLATFORM_URL: ${INTERSECTION_PLATFORM_URL}
# ORG_GRADLE_PROJECT_ghPackageUsername: ${GITHUB_PACKAGES_USERNAME}
# ORG_GRADLE_PROJECT_ghPackagesPwd: ${GITHUB_PACKAGES_PASSWORD}