Created
February 23, 2021 21:03
-
-
Save dnoliver/6f358493376fca0902d2e393c62e5b06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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