Commit ba17bcfb authored by 李念辉's avatar 李念辉

[fix] #11 mongo

parent d23eb4d0
...@@ -26,6 +26,7 @@ services: ...@@ -26,6 +26,7 @@ services:
mongo: mongo:
build: ./mongo/ build: ./mongo/
restart: always restart: always
command: --config /mongod.yml
ports: ports:
- "27017:27017" - "27017:27017"
volumes: volumes:
......
...@@ -5,6 +5,6 @@ FROM mongo:3.4.10 ...@@ -5,6 +5,6 @@ FROM mongo:3.4.10
# MONGO_INITDB_ROOT_PASSWORD=1234 \ # MONGO_INITDB_ROOT_PASSWORD=1234 \
# MONGO_INITDB_DATABASE=default # MONGO_INITDB_DATABASE=default
COPY mongod.conf.yml /etc/mongod.conf.orig COPY mongod.yml /mongod.yml
EXPOSE 27017 EXPOSE 27017
\ No newline at end of file
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/ # 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: net:
port: 27017 port: 27017
bindIp: 127.0.0.1
ssl: ssl:
mode: disabled mode: disabled
#processManagement:
security: security:
authorization: disabled authorization: disabled
transitionToAuth: false transitionToAuth: false
#operationProfiling:
replication: replication:
enableMajorityReadConcern: true 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