Skip to content

Instantly share code, notes, and snippets.

@dnoliver
Created February 23, 2021 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnoliver/6f358493376fca0902d2e393c62e5b06 to your computer and use it in GitHub Desktop.
Save dnoliver/6f358493376fca0902d2e393c62e5b06 to your computer and use it in GitHub Desktop.
version: "3.7"
services:
node-red:
image: nodered/node-red:latest
environment:
- TZ=America/Argentina
ports:
- "1880:1880"
networks:
- node-red-net
volumes:
- node-red-data:/data
mosquitto-config:
image: fedora:latest
volumes:
- mosquitto-config:/mosquitto/config
command:
- bash
- -c
- |
set -x
echo "persistence true" > /mosquitto/config/mosquitto.conf
echo "persistence_location /mosquitto/data" >> /mosquitto/config/mosquitto.conf
echo "log_dest file /mosquitto/log/mosquitto.log" >> /mosquitto/config/mosquitto.conf
echo "listener 1883" >> /mosquitto/config/mosquitto.conf
echo "allow_anonymous true" >> /mosquitto/config/mosquitto.conf
mosquitto:
image: eclipse-mosquitto:latest
ports:
- "9001:9001"
- "1883:1883"
networks:
- node-red-net
volumes:
- mosquitto-data:/mosquitto/data
- mosquitto-log:/mosquitto/log
- mosquitto-config:/mosquitto/config
debug:
image: fedora:latest
networks:
- node-red-net
command: tail -f /dev/null
volumes:
node-red-data:
mosquitto-data:
mosquitto-log:
mosquitto-config:
networks:
node-red-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment