-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
36 lines (34 loc) · 910 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
36 lines (34 loc) · 910 Bytes
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
# Test environment: NATS broker + Kuksa Databroker for MPU <-> cloud testing.
#
# Usage:
# docker compose -f docker-compose.test.yml up -d
# docker compose -f docker-compose.test.yml down
#
# NATS is exposed on localhost:4222.
# Kuksa Databroker is exposed on localhost:55556 (gRPC, mapped from container 55555).
services:
nats:
image: nats:2-alpine
ports:
- "4222:4222"
- "8222:8222"
command: ["--js", "-m", "8222"]
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8222/healthz"]
interval: 2s
timeout: 2s
retries: 10
kuksa-databroker:
image: ghcr.io/eclipse-kuksa/kuksa-databroker:0.6.0
ports:
- "55556:55555"
command:
- "--address"
- "0.0.0.0"
- "--insecure"
healthcheck:
test: ["CMD-SHELL", "true"]
interval: 10s
timeout: 3s
retries: 3
start_period: 3s