-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
131 lines (127 loc) · 3.16 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
services:
event-hub:
image: livetocode/vehicle-fleet-poc-event-hub:latest
build:
dockerfile: event-hub/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
ports:
- "4222:4222"
- "4243:4243"
- "8222:8222"
- "6222:6222"
volumes:
- type: bind
source: ./event-hub/config.txt
target: /etc/nats/nats-server.conf
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8222/varz"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_interval: 5s
event-collector:
image: livetocode/vehicle-fleet-poc-event-collector:latest
build:
dockerfile: .docker/nodejs.Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
args:
APP: collector
environment:
NATS_SERVERS: event-hub:4222
COLLECTOR_INSTANCES: 1
VEHICLES_AZURE_STORAGE_CONNECTION_STRING: ${VEHICLES_AZURE_STORAGE_CONNECTION_STRING}
ports:
- "7720:7720"
volumes:
- type: bind
source: ./config.yaml
target: /apps/config.yaml
- type: bind
source: ./output
target: /apps/output
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7720/ping"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_interval: 5s
depends_on:
event-hub:
condition: service_healthy
restart: true
event-finder:
image: livetocode/vehicle-fleet-poc-event-finder:latest
build:
dockerfile: .docker/nodejs.Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
args:
APP: finder
environment:
NATS_SERVERS: event-hub:4222
FINDER_INSTANCES: 1
VEHICLES_AZURE_STORAGE_CONNECTION_STRING: ${VEHICLES_AZURE_STORAGE_CONNECTION_STRING}
ports:
- "7730:7730"
volumes:
- type: bind
source: ./config.yaml
target: /apps/config.yaml
- type: bind
source: ./output
target: /apps/output
depends_on:
event-hub:
condition: service_healthy
restart: true
event-viewer:
image: livetocode/vehicle-fleet-poc-event-viewer:latest
build:
dockerfile: .docker/nodejs.Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
args:
APP: viewer
ports:
- "3000:3000"
depends_on:
event-hub:
condition: service_healthy
restart: true
event-generator:
image: livetocode/vehicle-fleet-poc-event-generator:latest
build:
dockerfile: .docker/nodejs.Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
args:
APP: generator
environment:
NATS_SERVERS: event-hub:4222
GENERATOR_INSTANCES: 1
COLLECTOR_INSTANCES: 1
ports:
- "7710:7710"
volumes:
- type: bind
source: ./config.yaml
target: /apps/config.yaml
- type: bind
source: ./output
target: /apps/output
depends_on:
event-hub:
condition: service_healthy
restart: true
event-collector:
condition: service_healthy
restart: true