mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-01 13:48:56 +08:00
29 lines
854 B
YAML
29 lines
854 B
YAML
![]() |
###
|
||
|
# This docker-compose file contains optional Cassandra and cassandra-reader. 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/cassandra-reader/docker-compose.yml up
|
||
|
# from project root.
|
||
|
###
|
||
|
|
||
|
version: "3"
|
||
|
|
||
|
networks:
|
||
|
docker_mainflux-base-net:
|
||
|
external: true
|
||
|
|
||
|
services:
|
||
|
cassandra-reader:
|
||
|
image: mainflux/cassandra-reader:latest
|
||
|
container_name: mainflux-cassandra-reader
|
||
|
restart: on-failure
|
||
|
environment:
|
||
|
MF_THINGS_URL: things:8183
|
||
|
MF_CASSANDRA_READER_PORT: 8903
|
||
|
MF_CASSANDRA_READER_DB_CLUSTER: mainflux-cassandra
|
||
|
MF_CASSANDRA_READER_DB_KEYSPACE: mainflux
|
||
|
ports:
|
||
|
- 8903:8903
|
||
|
networks:
|
||
|
- docker_mainflux-base-net
|