Skip to content

Commit

Permalink
added persistent volume configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
  • Loading branch information
chombium committed Mar 18, 2019
1 parent e2c58d5 commit 55e5fa8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/addons/bootstrap/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ networks:
docker_mainflux-base-net:
external: true

volumes:
mainflux-bootstrap-db-volume:

services:
bootstrap-db:
image: postgres:10.2-alpine
Expand All @@ -15,6 +18,8 @@ services:
POSTGRES_DB: bootstrap
networks:
- docker_mainflux-base-net
volumes:
- mainflux-bootstrap-db-volume:/var/lib/postgresql/data

bootstrap:
image: mainflux/bootstrap:latest
Expand Down
5 changes: 5 additions & 0 deletions docker/addons/cassandra-writer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ networks:
docker_mainflux-base-net:
external: true

volumes:
mainflux-cassandra-volume:

services:
cassandra:
image: cassandra:3.11.3
Expand All @@ -21,6 +24,8 @@ services:
- docker_mainflux-base-net
ports:
- 9042:9042
volumes:
- mainflux-cassandra-volume:/var/lib/cassandra

cassandra-writer:
image: mainflux/cassandra-writer:latest
Expand Down
8 changes: 8 additions & 0 deletions docker/addons/influxdb-writer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ networks:
docker_mainflux-base-net:
external: true

volumes:
mainflux-influxdb-volume:
mainflux-grafana-volume:

services:

influxdb:
Expand All @@ -25,6 +29,8 @@ services:
- docker_mainflux-base-net
ports:
- 8086:8086
volumes:
- mainflux-influxdb-volume:/var/lib/influxdb

influxdb-writer:
image: mainflux/influxdb-writer:latest
Expand Down Expand Up @@ -58,3 +64,5 @@ services:
- 3001:3000
networks:
- docker_mainflux-base-net
volumes:
- mainflux-grafana-volume:/var/lib/grafana
7 changes: 7 additions & 0 deletions docker/addons/mongodb-writer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ networks:
docker_mainflux-base-net:
external: true

volumes:
mainflux-mongodb-db-volume:
mainflux-mongodb-configdb-volume:

services:
mongodb:
image: mongo:3.6-jessie
Expand All @@ -24,6 +28,9 @@ services:
- 27017:27017
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
Expand Down
14 changes: 14 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ networks:
mainflux-base-net:
driver: bridge

volumes:
mainflux-users-db-volume:
mainflux-things-db-volume:
mainflux-redis-volume:
mainflux-things-redis-volume:

services:
nginx:
image: nginx:1.14.2-alpine
Expand Down Expand Up @@ -46,6 +52,8 @@ services:
POSTGRES_DB: users
networks:
- mainflux-base-net
volumes:
- mainflux-users-db-volume:/var/lib/postgresql/data

users:
image: mainflux/users:latest
Expand Down Expand Up @@ -80,13 +88,17 @@ services:
POSTGRES_DB: things
networks:
- mainflux-base-net
volumes:
- mainflux-things-db-volume:/var/lib/postgresql/data

things-redis:
image: redis:5.0-alpine
container_name: mainflux-things-redis
restart: on-failure
networks:
- mainflux-base-net
volumes:
- mainflux-things-redis-volume:/data

things:
image: mainflux/things:latest
Expand Down Expand Up @@ -182,6 +194,8 @@ services:
restart: on-failure
networks:
- mainflux-base-net
volumes:
- mainflux-redis-volume:/data

mqtt-adapter:
image: mainflux/mqtt:latest
Expand Down

0 comments on commit 55e5fa8

Please sign in to comment.