Docker fixes
parent
83e97a0d20
commit
a9f8cf4d34
|
@ -14,15 +14,14 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo:latest
|
image: mongo:3.4.10
|
||||||
container_name: "mongodb"
|
container_name: "mongodb"
|
||||||
environment:
|
|
||||||
- MONGO_DATA_DIR=/data/db
|
|
||||||
- MONGO_LOG_DIR=/dev/null
|
|
||||||
# - MONGODB_USER="user"
|
|
||||||
# - MONGODB_PASS="pass"
|
|
||||||
volumes:
|
|
||||||
- ./data/db:/data/db
|
|
||||||
ports:
|
ports:
|
||||||
- 27017:27017
|
- 27017
|
||||||
|
volumes:
|
||||||
|
- mongo-data:/data/db
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
command: mongod --smallfiles --logpath=/dev/null
|
command: mongod --smallfiles --logpath=/dev/null
|
||||||
|
volumes:
|
||||||
|
mongo-data:
|
Loading…
Reference in New Issue