Mainflux.mainflux/docker
Jonathan Dreyer 46aadcfd9d
NOISSUE - Adding subtopics filtering in writer services (#1072)
* Add feature of filtering by subtopics in writer

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Fix mistake

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Refactoring writer sevices

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Rename variables related to filter (channels & subtopics)

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Set default value of filtering when configuration file doesn't exist

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Add a blank line at the end of the file

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Refactor loading filters configuration (moving into writer package, merge both loading methods & returning error)

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Remove useless log

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Change type of variables (channels & subtopics) and simplify loading method

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Add logging error when loading filters

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Simplify return configuration in loading method

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Merge both filter files into one file

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Move loading subjects into writer package

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Add subscribe to selected subjects

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Edit README of writer services

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Keep only subscribe loop

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Use full NATS subjects

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

* Edit comment in subjects files

Signed-off-by: Jonathan Dreyer <jonathan.dreyer@cleanenergie.ch>

Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2020-03-30 18:24:27 +02:00
..
addons NOISSUE - Adding subtopics filtering in writer services (#1072) 2020-03-30 18:24:27 +02:00
nats NOISSUE - add nats conf (#1031) 2020-02-06 18:44:29 +01:00
nginx NOISSUE - Enable MQTT over WS in docker composition (#1085) 2020-03-25 22:26:50 +01:00
ssl NOISSUE - Update nginx version (#748) 2019-05-16 11:59:23 +02:00
users/emailer/templates MF-942 - Fix email template logic (#944) 2019-11-11 12:13:48 +01:00
Dockerfile MF-532 - Password reset (#873) 2019-10-22 14:53:14 +02:00
Dockerfile.dev NOISSUE - Fix Docker for ARM (#760) 2019-06-20 14:14:06 +02:00
README.md NOISSUE - Use .env vars in docker-compose (#770) 2019-07-02 14:22:12 +02:00
docker-compose.yml NOISSUE - Enable MQTT over WS in docker composition (#1085) 2020-03-25 22:26:50 +01:00

README.md

Docker Composition

Configure environment variables and run Mainflux Docker Composition.

Note*: docker-compose uses .env file to set all environment variables. Ensure that you run the command from the same location as .env file.

Installation

Follow the official documentation.

Usage

Run following commands from project root directory.

docker-compose -f docker/docker-compose.yml up
docker-compose -f docker/addons/<path>/docker-compose.yml  up