1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
Mainflux.mainflux/docker/docker-compose-nats-cassandra.yml
nmarcetic 3d7c341c5e Added volume to docker-compose-cassandra in order to support data persistency
Signed-off-by: nmarcetic <n.marcetic86@gmail.com>
2017-09-22 12:11:16 +02:00

35 lines
673 B
YAML

###
# Copyright (c) 2015-2017 Mainflux
#
# Mainflux server is licensed under an Apache license, version 2.0 license.
# All rights not explicitly granted in the Apache license, version 2.0 are reserved.
# See the included LICENSE file for more details.
###
version: "3"
services:
###
# NATS
###
nats:
image: nats:latest
container_name: mainflux-nats
network_mode: bridge
ports:
- "4222:4222"
- "8222:8222"
###
# Cassandra
###
cassandra:
image: cassandra:latest
container_name: mainflux-cassandra
network_mode: bridge
ports:
- "9042:9042"
- "9160:9160"
volumes:
- ./db:/var/lib/cassandra