Skip to content

Docker Composer Installation

Benoit3 edited this page Mar 24, 2023 · 2 revisions

Requirements

  • A MQTT Broker is available
  • Docker and Docker Composer have been installed
  • you need to choose the application you want: latest, dev-latest, or vX.Y.Z

Installation

Create 3 directories :

mkdir ~/docker/diematic
mkdir ~/docker/diematic/conf
mkdir ~/docker/diematic/log

Copy configuration files Diematic32MQTT.conf and logging.conf into ~/docker/diematic/conf Adjust parameters into Diematic32MQTT.conf (with docker it's safer to avoid using server name, localhost or 127.0.0.1 IP address)

Create file ~docker/diematic/docker-compose.yml

version: '3'
services:
  diematic:
    container_name: diematic
    restart: unless-stopped
    image: ghcr.io/benoit3/diematic_to_mqtt:latest
    volumes:
      - ~docker/diematic/store/conf:/app/conf
      - ~docker/diematic/store/log:/app/log

Start

cd ~docker/diematic
docker-compose up -d diematic

Stop

cd ~docker/diematic
docker-compose stop diematic
Clone this wiki locally