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
ba17bcfb
Commit
ba17bcfb
authored
May 07, 2020
by
李念辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]
#11
mongo
parent
d23eb4d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
docker-compose.yml
docker-compose.yml
+1
-0
Dockerfile
mongo/Dockerfile
+1
-1
mongod.yml
mongo/mongod.yml
+13
-0
No files found.
docker-compose.yml
View file @
ba17bcfb
...
@@ -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
:
...
...
mongo/Dockerfile
View file @
ba17bcfb
...
@@ -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
mongo/mongod.
conf.
yml
→
mongo/mongod.yml
View file @
ba17bcfb
# 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
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