Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
infrastructure-dev
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
infrastructure-dev
Commits
d23eb4d0
Commit
d23eb4d0
authored
May 07, 2020
by
李念辉
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '11-1' into 'master'
[feat]
#11
调整mongo Closes
#11
See merge request
!16
parents
bbd71940
3c01c971
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
4 deletions
+51
-4
docker-compose.yml
docker-compose.yml
+0
-1
Dockerfile
mongo/Dockerfile
+5
-3
mongod.conf.yml
mongo/mongod.conf.yml
+46
-0
No files found.
docker-compose.yml
View file @
d23eb4d0
...
...
@@ -26,7 +26,6 @@ services:
mongo
:
build
:
./mongo/
restart
:
always
command
:
--auth --enableMajorityReadConcern
ports
:
-
"
27017:27017"
volumes
:
...
...
mongo/Dockerfile
View file @
d23eb4d0
# https://hub.docker.com/_/mongo/
FROM
mongo:3.4.10
ENV
MONGO_INITDB_ROOT_USERNAME=root \
MONGO_INITDB_ROOT_PASSWORD=1234 \
MONGO_INITDB_DATABASE=default
# ENV MONGO_INITDB_ROOT_USERNAME=root \
# MONGO_INITDB_ROOT_PASSWORD=1234 \
# MONGO_INITDB_DATABASE=default
COPY
mongod.conf.yml /etc/mongod.conf.orig
EXPOSE
27017
\ No newline at end of file
mongo/mongod.conf.yml
0 → 100644
View file @
d23eb4d0
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment