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

Merge branch '11-1' into 'master'

[feat] #11 调整mongo

Closes #11

See merge request !16
parents bbd71940 3c01c971
...@@ -26,7 +26,6 @@ services: ...@@ -26,7 +26,6 @@ services:
mongo: mongo:
build: ./mongo/ build: ./mongo/
restart: always restart: always
command: --auth --enableMajorityReadConcern
ports: ports:
- "27017:27017" - "27017:27017"
volumes: volumes:
......
# https://hub.docker.com/_/mongo/ # https://hub.docker.com/_/mongo/
FROM mongo:3.4.10 FROM mongo:3.4.10
ENV MONGO_INITDB_ROOT_USERNAME=root \ # ENV MONGO_INITDB_ROOT_USERNAME=root \
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
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/
# 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