2019-10-31 14:04:47 +01:00
|
|
|
# Copyright (c) Mainflux
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-08-25 12:48:03 +02:00
|
|
|
###
|
|
|
|
# This docker-compose file contains optional InfluxDB-reader service for the Mainflux
|
|
|
|
# platform. Since this service is optional, this file is dependent on the docker-compose.yml
|
2019-10-31 14:04:47 +01:00
|
|
|
# file from <project_root>/docker/. In order to run this service, core services,
|
2018-08-25 12:48:03 +02:00
|
|
|
# as well as the network from the core composition, should be already running.
|
|
|
|
###
|
|
|
|
|
2019-10-02 11:57:12 +02:00
|
|
|
version: "3.7"
|
2018-08-25 12:48:03 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
docker_mainflux-base-net:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
influxdb-reader:
|
2021-02-02 16:26:02 +01:00
|
|
|
image: mainflux/influxdb-reader:${MF_RELEASE_TAG}
|
2018-08-25 12:48:03 +02:00
|
|
|
container_name: mainflux-influxdb-reader
|
|
|
|
restart: on-failure
|
|
|
|
environment:
|
2018-11-08 21:22:59 +01:00
|
|
|
MF_INFLUX_READER_LOG_LEVEL: debug
|
2019-07-02 14:22:12 +02:00
|
|
|
MF_INFLUX_READER_PORT: ${MF_INFLUX_READER_PORT}
|
2021-02-05 12:32:21 +01:00
|
|
|
MF_INFLUXDB_DB: ${MF_INFLUXDB_DB}
|
2022-03-29 11:53:27 +02:00
|
|
|
MF_INFLUXDB_HOST: mainflux-influxdb
|
2021-02-05 12:32:21 +01:00
|
|
|
MF_INFLUXDB_PORT: ${MF_INFLUXDB_PORT}
|
|
|
|
MF_INFLUXDB_ADMIN_USER: ${MF_INFLUXDB_ADMIN_USER}
|
|
|
|
MF_INFLUXDB_ADMIN_PASSWORD: ${MF_INFLUXDB_ADMIN_PASSWORD}
|
2020-02-05 20:24:36 +01:00
|
|
|
MF_INFLUX_READER_SERVER_CERT: ${MF_INFLUX_READER_SERVER_CERT}
|
|
|
|
MF_INFLUX_READER_SERVER_KEY: ${MF_INFLUX_READER_SERVER_KEY}
|
2019-07-18 15:01:09 +02:00
|
|
|
MF_JAEGER_URL: ${MF_JAEGER_URL}
|
2020-04-07 12:02:17 +02:00
|
|
|
MF_THINGS_AUTH_GRPC_URL: ${MF_THINGS_AUTH_GRPC_URL}
|
|
|
|
MF_THINGS_AUTH_GRPC_TIMEOUT: ${MF_THINGS_AUTH_GRPC_TIMEOUT}
|
2022-02-09 21:25:34 +01:00
|
|
|
MF_AUTH_GRPC_URL: ${MF_AUTH_GRPC_URL}
|
|
|
|
MF_AUTH_GRPC_TIMEOUT : ${MF_AUTH_GRPC_TIMEOUT}
|
2018-08-25 12:48:03 +02:00
|
|
|
ports:
|
2019-07-02 14:22:12 +02:00
|
|
|
- ${MF_INFLUX_READER_PORT}:${MF_INFLUX_READER_PORT}
|
2018-08-25 12:48:03 +02:00
|
|
|
networks:
|
|
|
|
- docker_mainflux-base-net
|
2020-02-05 20:24:36 +01:00
|
|
|
volumes:
|
|
|
|
- ../../ssl/certs:/etc/ssl/certs
|