mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-01 13:48:56 +08:00

* NOISSUE - Fix AuthN and Things Auth ENVARS Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Add DB envars to env.go Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix envars Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Add DefLogLLevelError Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix DB names Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix DB names Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix DB names and HTTP ports Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix .env Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert writers DB names Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm unused Twins envars Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix reviews Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix reviews Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix typo Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Remove definitions from env.go Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert HTTP gRPC ports Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Use default NATS URL as string Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix reviews Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert default ports Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix typo Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix cassandra ENVARS Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix cassandra reader ENVARS Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix readers and writers envars Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix readers and writers .env Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix reviews Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
# Copyright (c) Mainflux
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# This docker-compose file contains optional MongoDB and MongoDB-writer services
|
|
# for Mainflux platform. Since these are optional, this file is dependent of docker-compose file
|
|
# from <project_root>/docker. In order to run these services, execute command:
|
|
# docker-compose -f docker/docker-compose.yml -f docker/addons/mongodb-writer/docker-compose.yml up
|
|
# from project root. MongoDB default port (27017) is exposed, so you can use various tools for database
|
|
# inspection and data visualization.
|
|
|
|
version: "3.7"
|
|
|
|
networks:
|
|
docker_mainflux-base-net:
|
|
external: true
|
|
|
|
volumes:
|
|
mainflux-mongodb-db-volume:
|
|
mainflux-mongodb-configdb-volume:
|
|
|
|
services:
|
|
mongodb:
|
|
image: mongo:3.6-jessie
|
|
container_name: mainflux-mongodb
|
|
restart: on-failure
|
|
environment:
|
|
MONGO_INITDB_DATABASE: ${MF_MONGO_WRITER_DB}
|
|
ports:
|
|
- ${MF_MONGO_WRITER_DB_PORT}:${MF_MONGO_WRITER_DB_PORT}
|
|
networks:
|
|
- docker_mainflux-base-net
|
|
volumes:
|
|
- mainflux-mongodb-db-volume:/data/db
|
|
- mainflux-mongodb-configdb-volume:/data/configdb
|
|
|
|
mongodb-writer:
|
|
image: mainflux/mongodb-writer:latest
|
|
container_name: mainflux-mongodb-writer
|
|
depends_on:
|
|
- mongodb
|
|
restart: on-failure
|
|
environment:
|
|
MF_MONGO_WRITER_LOG_LEVEL: ${MF_MONGO_WRITER_LOG_LEVEL}
|
|
MF_NATS_URL: ${MF_NATS_URL}
|
|
MF_MONGO_WRITER_PORT: ${MF_MONGO_WRITER_PORT}
|
|
MF_MONGO_WRITER_DB: ${MF_MONGO_WRITER_DB}
|
|
MF_MONGO_WRITER_DB_HOST: mongodb
|
|
MF_MONGO_WRITER_DB_PORT: ${MF_MONGO_WRITER_DB_PORT}
|
|
ports:
|
|
- ${MF_MONGO_WRITER_PORT}:${MF_MONGO_WRITER_PORT}
|
|
networks:
|
|
- docker_mainflux-base-net
|
|
volumes:
|
|
- ./subjects.toml:/config/subjects.toml
|