Skip to content
Joerg (DJ7NT) edited this page Apr 13, 2025 · 3 revisions

Setup with Docker

to run it with docker, create a docker-compose.yaml with the following content:

version: "3"
services:
  liveqso:
    build: https://github.com/int2001/wavelog_stream.git#dev
    container_name: liveqso
    volumes:
      - ./config.js:/usr/src/app/config.js
    restart: unless-stopped
    ports:
      - "127.0.0.1:8091:8000"

  mosquitto:
    image: eclipse-mosquitto
    container_name: mosquitto
    restart: unless-stopped
    volumes:
      - ./mosquitto/config:/mosquitto/config
      - ./mosquitto/data:/mosquitto/data
      - ./mosquitto/log:/mosquitto/log
    ports:
      - "127.0.0.1:1883:1883"

furthermore add some directories and configs for both tools:

  1. mosquitto:
    1. mkdir -p ./mosquitto/config ./mosquitto/data ./mosquitto/log
    2. put the following content into ./mosquitto/config/mosquitto.conf:
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
listener 1883
allow_anonymous true
  1. wavelog-stream:

    1. create ./config.js from confis.js.sample
  2. start the stack: docker-compose up -d

  3. Don't forget to add the mosquitto-line to your wavelog-config: $config['mqtt_server']='localhost';

Important:

You'll need a Wavelog-Version with MQTT (not before 2.0.4!). If you like to test. grab the PR

Clone this wiki locally