-
Notifications
You must be signed in to change notification settings - Fork 9
Docker Composer Installation
Benoit3 edited this page Mar 24, 2023
·
2 revisions
- A MQTT Broker is available
- Docker and Docker Composer have been installed
- you need to choose the application you want:
latest
,dev-latest
, orvX.Y.Z
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
cd ~docker/diematic
docker-compose up -d diematic
cd ~docker/diematic
docker-compose stop diematic