Mainflux.mainflux/docker
b1ackd0t 8b185d205b
MF - 1758 - Sync With Benchmark Testing (#1912)
* feat(docker): add trace ration and max conn

This adds a new environment variable `MF_JAEGER_TRACE_RATIO` to the `docker/.env` file. The variable is used to set the ratio of requests traced.

Additionally, this commit also adds a new environment variable `MF_POSTGRES_MAX_CONNECTIONS` for configuring the maximum number of connections for the Postgres database.

These changes are made to enhance the configuration and scalability of the core services.

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>

* Remove comment to trace ratio

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Reduce postgres max connection to 100

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

---------

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
2023-10-24 18:59:49 +02:00
..
addons MF - 1758 - Sync With Benchmark Testing (#1912) 2023-10-24 18:59:49 +02:00
brokers NOISSUE - Introduce NATS Jetstream as Default ES (#1907) 2023-10-24 17:22:53 +02:00
es NOISSUE - Introduce NATS Jetstream as Default ES (#1907) 2023-10-24 17:22:53 +02:00
nats NOISSUE - Make MQTT Broker Configurable (#1904) 2023-10-19 21:01:09 +02:00
nginx NOISSUE: Listing of shared things with users & Update SDK (#1923) 2023-10-17 15:38:06 +02:00
policy MF-1248 - Add access policies for users (#1246) 2020-12-08 17:04:09 +01:00
spicedb NOISSUE - Switch to Google Zanzibar Access control approach (#1919) 2023-10-15 22:02:13 +02:00
ssl NOISSUE - Implementation of gRPC mTLS (#1848) 2023-08-16 19:11:33 +02:00
templates MF-1506 - Group-based Access Control (#1716) 2023-06-14 12:40:37 +02:00
vernemq NOISSUE - Make MQTT Broker Configurable (#1904) 2023-10-19 21:01:09 +02:00
.env MF - 1758 - Sync With Benchmark Testing (#1912) 2023-10-24 18:59:49 +02:00
Dockerfile NOISSUE - Update Go Version on Docker and CI (#1925) 2023-10-16 11:46:07 +02:00
Dockerfile.dev COPY SSL Certs From Alpine (#1839) 2023-07-10 14:20:44 +02:00
README.md MF-1342 - Use environment variables in docker-compose to use tagged version of image (#1343) 2021-02-02 16:26:02 +01:00
docker-compose.yml MF - 1758 - Sync With Benchmark Testing (#1912) 2023-10-24 18:59:49 +02: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

To pull docker images from a specific release you need to change the value of MF_RELEASE_TAG in .env before running these commands.