2018-08-08 13:38:34 +02:00
|
|
|
###
|
|
|
|
# This docker-compose file contains optional MongoDB-reader service
|
|
|
|
# for Mainflux platform. Since these are optional, this file is dependent of docker-compose file
|
|
|
|
# from <project_root>/docker. In order to run these optional service, execute command:
|
|
|
|
# docker-compose -f docker/docker-compose.yml -f docker/addons/mongodb-reader/docker-compose.yml up
|
|
|
|
# from project root. MongoDB service is defined in docker/addons/mongodb-writer/docker-compose.yml.
|
|
|
|
###
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
docker_mainflux-base-net:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
mongodb-reader:
|
|
|
|
image: mainflux/mongodb-reader:latest
|
|
|
|
container_name: mainflux-mongodb-reader
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2019-07-02 14:22:12 +02:00
|
|
|
MF_MONGO_READER_LOG_LEVEL: ${MF_MONGO_READER_LOG_LEVEL}
|
2019-07-11 23:19:08 +02:00
|
|
|
MF_THINGS_URL: things:${MF_THINGS_AUTH_GRPC_PORT}
|
2019-07-02 14:22:12 +02:00
|
|
|
MF_MONGO_READER_PORT: ${MF_MONGO_READER_PORT}
|
|
|
|
MF_MONGO_READER_DB_NAME: ${MF_MONGO_READER_DB_NAME}
|
2018-08-08 13:38:34 +02:00
|
|
|
MF_MONGO_READER_DB_HOST: mongodb
|
2019-07-02 14:22:12 +02:00
|
|
|
MF_MONGO_READER_DB_PORT: ${MF_MONGO_READER_DB_PORT}
|
2019-07-18 15:01:09 +02:00
|
|
|
MF_JAEGER_URL: ${MF_JAEGER_URL}
|
2018-08-08 13:38:34 +02:00
|
|
|
ports:
|
2019-07-02 14:22:12 +02:00
|
|
|
- ${MF_MONGO_READER_PORT}:${MF_MONGO_READER_PORT}
|
2018-08-08 13:38:34 +02:00
|
|
|
networks:
|
|
|
|
- docker_mainflux-base-net
|