From 5027e2f6fc1ebb2ce3c3b356b81211fc16a5150d Mon Sep 17 00:00:00 2001 From: marcio fernandes Date: Tue, 26 Oct 2021 21:25:12 +0100 Subject: [PATCH] projected created --- .gitignore | 4 ++++ README.md | 0 docker/docker-compose.yaml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker/docker-compose.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aab1bd0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +**.env +_volumes +_volumes +.vscode diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 0000000..5ca46fe --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,30 @@ + +version: "3" +services: + mosquitto: + container_name: mosquitto + image: eclipse-mosquitto:latest + ports: + - '1883:1883' + - '8883:8883' + volumes: + - 'data:/mosquitto/data/' + - 'config:/mosquitto/config/' + environment: + TZ: 'America/Chicago' + restart: unless-stopped +volumes: + data: + name: mosquitto_data + driver: local + driver_opts: + type: ${MOSQUITTO_VOLUME_DATA_TYPE} + o: ${MOSQUITTO_VOLUME_DATA_O} + device: ${MOSQUITTO_VOLUME_DATA_DEVICE} + config: + name: mosquitto_config + driver: local + driver_opts: + type: ${MOSQUITTO_VOLUME_CONFIG_TYPE} + o: ${MOSQUITTO_VOLUME_CONFI_O} + device: ${MOSQUITTO_VOLUME_CONFIG_DEVICE}