diff --git a/__swarm/mosquitto/mosquitto-swarm.yml b/__swarm/mosquitto/mosquitto-swarm.yml new file mode 100644 index 0000000..f2c294c --- /dev/null +++ b/__swarm/mosquitto/mosquitto-swarm.yml @@ -0,0 +1,23 @@ +name: mosquitto +services: + mosquitto: + image: ${DOCKER_REGISTRY:-}eclipse-mosquitto + mem_limit: 1g + network_mode: host + volumes: + - conf:/mosquitto/config + - data:/mosquitto/data + - log:/mosquitto/log + deploy: + labels: + com.centurylinklabs.watchtower.enable: 'true' + wud.watch: 'true' + wud.watch.digest: 'true' + replicas: 1 + placement: + constraints: + - node.role == manager +volumes: + conf: + data: + log: \ No newline at end of file