-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.3 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
version: "3.9"
# EdgeKit – local development stack
# Runs 1 server (MQTT broker) + 1 client (autonomous EdgeX 4.x edge node)
# Usage: docker compose up --build
services:
server:
build:
context: ./server
dockerfile: Dockerfile
image: edgekit-server:local
container_name: edgekit-server
restart: unless-stopped
ports:
- "1883:1883" # MQTT
- "9001:9001" # MQTT over WebSocket
volumes:
- mosquitto-data:/mosquitto/data
healthcheck:
test: ["CMD", "mosquitto_pub", "-h", "localhost", "-t", "healthcheck", "-m", "ping", "-q", "0"]
interval: 10s
timeout: 5s
retries: 5
client:
build:
context: ./client
dockerfile: Dockerfile
args:
EDGEX_VERSION: "4.0.0"
image: edgekit-client:local
container_name: edgekit-client
restart: unless-stopped
depends_on:
server:
condition: service_healthy
env_file:
- ./client/env/edge.env
environment:
# Local override: reach the central broker via the compose service name.
WRITABLE_PIPELINE_FUNCTIONS_MQTTEXPORT_PARAMETERS_BROKERADDRESS: tcp://server:1883
WRITABLE_PIPELINE_FUNCTIONS_ADDTAGS_PARAMETERS_TAGS: site:edge-local-1
volumes:
- edge-pgdata:/var/lib/edgex/pgdata
volumes:
mosquitto-data:
edge-pgdata: