diff --git a/docker/common-services.yml b/docker/common-services.yml index 8e904f1..fe39b4e 100644 --- a/docker/common-services.yml +++ b/docker/common-services.yml @@ -6,11 +6,15 @@ services: image: redis:latest ports: - "6379:6379" + volumes: + - redis_data:/data rabbitmq: image: rabbitmq:management ports: - "5672:5672" - "15672:15672" + volumes: + - rabbitmq_data:/var/lib/rabbitmq dashboard: build: ../../ghcrawler-dashboard ports: @@ -29,6 +33,9 @@ services: ports: - "27017:27017" - "28017:28017" + volumes: + - mongo_data_db:/data/db + - mongo_configdb:/data/configdb elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0 ports: @@ -43,6 +50,8 @@ services: image: metabase/metabase:latest ports: - "5000:3000" + volumes: + - metabase_data:/var/opt/metabase # links: # - mongo crawler: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 2fb5986..7b0876f 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -38,3 +38,9 @@ services: - mongo - redis - rabbitmq +volumes: + redis_data: + rabbitmq_data: + mongo_configdb: + mongo_data_db: + metabase_data: diff --git a/docker/elastic.yml b/docker/elastic.yml index adef496..8691b3f 100644 --- a/docker/elastic.yml +++ b/docker/elastic.yml @@ -40,3 +40,6 @@ services: - elasticsearch - redis - rabbitmq +volumes: + redis_data: + rabbitmq_data: diff --git a/docker/mongo.yml b/docker/mongo.yml index 553b730..431b3a1 100644 --- a/docker/mongo.yml +++ b/docker/mongo.yml @@ -35,3 +35,9 @@ services: - mongo - redis - rabbitmq +volumes: + redis_data: + rabbitmq_data: + mongo_configdb: + mongo_data_db: + metabase_data: