Commit 9f288eac authored by 李念辉's avatar 李念辉

Merge branch '11-2' into 'master'

[fix] #11 mongo

Closes #11

See merge request !17
parents d23eb4d0 ba17bcfb
......@@ -26,6 +26,7 @@ services:
mongo:
build: ./mongo/
restart: always
command: --config /mongod.yml
ports:
- "27017:27017"
volumes:
......
......@@ -5,6 +5,6 @@ FROM mongo:3.4.10
# MONGO_INITDB_ROOT_PASSWORD=1234 \
# MONGO_INITDB_DATABASE=default
COPY mongod.conf.yml /etc/mongod.conf.orig
COPY mongod.yml /mongod.yml
EXPOSE 27017
\ No newline at end of file
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
ssl:
mode: disabled
#processManagement:
security:
authorization: disabled
transitionToAuth: false
#operationProfiling:
replication:
enableMajorityReadConcern: true
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment