-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
36 lines (33 loc) · 1.01 KB
/
docker-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
################################################################################
# Node-RED Stack or Compose
################################################################################
# docker stack deploy node-red --compose-file docker-compose-node-red.yml
# docker-compose -f docker-compose-node-red.yml -p myNoderedProject up
################################################################################
version: "3.7"
services:
node-red:
image: nodered/node-red:latest
environment:
- TZ=Europe/Kiev
ports:
- "1880:1880"
- "5555:5555/udp"
- "4444:4444"
networks:
- node-red-net
volumes:
- ./data:/data
- ./:/workspace
mqtt:
image: eclipse-mosquitto
container_name: mqtt
ports:
- "1883:1883" #default mqtt port
- "9001:9001" #default mqtt port for websockets
volumes:
- ./mqtt-data/config:/mosquitto/config:rw
- ./mqtt-data/data:/mosquitto/data:rw
- ./mqtt-data/log:/mosquitto/log:rw
networks:
node-red-net: