From 4c06a03ead4db4e7fc1806fd0851ac812bed0b0d Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Wed, 1 Jun 2016 14:44:10 +0300 Subject: [PATCH] get mongo volum from the data container --- docker-compose.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5557da0..16ec111 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,7 @@ services: - /var/lib/redis - /var/lib/memcached - /var/lib/neo4j/data + - /var/lib/mongo:/data/db ### Nginx Server Container ################################## @@ -101,6 +102,15 @@ services: volumes_from: - data +### MongoDB Container ####################################### + + mongo: + build: ./mongo + ports: + - "27017:27017" + volumes_from: + - data + ### Redis Container ######################################### redis: @@ -139,13 +149,6 @@ services: - "2080:2080" links: - beanstalkd - -### Mongo Container ############################ - - mongo: - build: ./mongo - ports: - - "27017:27017" ### Workspace Utilities Container ###########################