This is an old revision of the document!
DigitalSTROM MQTTG Gateway in a Docker container
this is WIP this is how i set up Chriss Gross' MQTT bridge to run inside a node docker container:
- docker-compose.yml
version: "2" services: node: image: "node:22-bookworm" user: "node" working_dir: /home/node/app environment: - NODE_ENV=production volumes: - ./app:/home/node/app # expose: # - "8081" # ports: # use if it is necessary to expose the container to the host machine # - "8001:8001" # command: "npm start" command: "/bin/bash -c 'while true; do sleep 10; done'"
docker compose up chown 1000.1000 app docker compose exec node bash npm install --save mqtt-dss-bridge exit docker compose down nano ./app/node_modules/mqtt-dss-bridge/config.js