link db from web container

This commit is contained in:
Sam 2016-04-24 22:29:11 +03:00
parent 28928636d2
commit 3c063062a5

View File

@ -3,9 +3,9 @@ version: '2'
services:
db:
image: mongo:3.2
command: ['bash', '-c', 'mongod --storageEngine wiredTiger'] #['mongod', '--storageEngine', 'wiredTiger']
# command: ['bash', '-c', 'mongod --storageEngine wiredTiger'] #['mongod', '--storageEngine', 'wiredTiger']
volumes:
- mongo-data-wt:/data/db
- ./mongo-data-wt:/data/db
#- /tmp/etc:/etc
networks:
- back-tier
@ -19,6 +19,8 @@ services:
- "35729:35729"
networks:
- back-tier
links:
- db
volumes:
mongo-data-wt:
driver: local