From f21c2bf1b853e05d74a3ab297feb87cabe4b469a Mon Sep 17 00:00:00 2001 From: ShankarMounesh Date: Fri, 29 Apr 2022 10:27:59 +0000 Subject: [PATCH] Update 'Mosquitto/docker-compose.yaml' --- Mosquitto/docker-compose.yaml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/Mosquitto/docker-compose.yaml b/Mosquitto/docker-compose.yaml index 5d41604..63465aa 100644 --- a/Mosquitto/docker-compose.yaml +++ b/Mosquitto/docker-compose.yaml @@ -1,10 +1,24 @@ -version: "3" -services: + +version: "2.4" + +services: mosquitto: - image: eclipse-mosquitto - container_name: mosquitto - ports: - - "1883:1883" - - "9001:9001" + image: eclipse-mosquitto:2 + container_name: mosquitto.bit.lan + restart: unless-stopped + + mem_limit: 512M + + network_mode: host + + #ports: + # - "1883:1883" + # - "9001:9001" + volumes: - - "/mosquitto-data:/mosquitto" \ No newline at end of file + - ./config:/mosquitto/config/ + - ./data:/mosquitto/data + - ./log:/mosquitto/log + + labels: + - com.centurylinklabs.watchtower.enable=true