mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Mongodb 3.6 config file format.
This commit is contained in:
parent
679e70a2b7
commit
c2c79f4034
2 changed files with 37 additions and 86 deletions
|
@ -5,12 +5,13 @@
|
|||
name: mongo
|
||||
image: mongo:3.6
|
||||
state: started
|
||||
container_default_behavior: no_defaults
|
||||
ports:
|
||||
- 27017:27017
|
||||
restart_policy: unless-stopped
|
||||
volumes:
|
||||
- /mnt/"{{ inventory_hostname | regex_replace('db-|-', '') }}":/etc/mongodb.conf
|
||||
- /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongodb.conf
|
||||
- /mnt/{{ inventory_hostname | regex_replace('db-|-', '') }}:/data/db
|
||||
- /srv/newsblur/ansible/roles/mongo/templates/mongo.conf:/etc/mongod.conf
|
||||
|
||||
- name: Register mongo in consul
|
||||
tags: consul
|
||||
|
|
|
@ -1,96 +1,46 @@
|
|||
# mongodb.conf
|
||||
# mongod.conf
|
||||
|
||||
# Where to store the data.
|
||||
# for documentation of all options, see:
|
||||
# http://docs.mongodb.org/manual/reference/configuration-options/
|
||||
|
||||
# Note: if you run mongodb as a non-root user (recommended) you may
|
||||
# need to create and set permissions for this directory manually,
|
||||
# e.g., if the parent directory isn't mutable by the mongodb user.
|
||||
dbpath=/data/db
|
||||
# Where and how to store data.
|
||||
storage:
|
||||
dbPath: /data/db
|
||||
journal:
|
||||
enabled: true
|
||||
# engine:
|
||||
# mmapv1:
|
||||
# wiredTiger:
|
||||
|
||||
#where to log
|
||||
logpath=/var/log/mongodb/mongodb.log
|
||||
# where to write logging data.
|
||||
systemLog:
|
||||
destination: file
|
||||
logAppend: true
|
||||
path: /var/log/mongodb/mongod.log
|
||||
|
||||
logappend=true
|
||||
# network interfaces
|
||||
net:
|
||||
port: 27017
|
||||
bindIp: 127.0.0.1
|
||||
bindIpAll: true
|
||||
|
||||
#port = 27017
|
||||
# how the process runs
|
||||
processManagement:
|
||||
timeZoneInfo: /usr/share/zoneinfo
|
||||
|
||||
slowms=1000
|
||||
#security:
|
||||
|
||||
syncdelay=1
|
||||
operationProfiling:
|
||||
mode: slowOp
|
||||
slowOpThresholdMs: 1000
|
||||
|
||||
#rest = true
|
||||
#profile = 2
|
||||
# Enables periodic logging of CPU utilization and I/O wait
|
||||
#cpu = true
|
||||
replication:
|
||||
replSetName: nbset
|
||||
|
||||
# Turn on/off security. Off is currently the default
|
||||
noauth = true
|
||||
#auth = true
|
||||
#sharding:
|
||||
|
||||
# Verbose logging output.
|
||||
#verbose = true
|
||||
## Enterprise-Only Options:
|
||||
|
||||
# Inspect all client data for validity on receipt (useful for
|
||||
# developing drivers)
|
||||
#objcheck = true
|
||||
#auditLog:
|
||||
|
||||
# Enable db quota management
|
||||
#quota = true
|
||||
|
||||
# Set oplogging level where n is
|
||||
# 0=off (default)
|
||||
# 1=W
|
||||
# 2=R
|
||||
# 3=both
|
||||
# 7=W+some reads
|
||||
#diaglog = 0
|
||||
|
||||
# Diagnostic/debugging option
|
||||
#nocursors = true
|
||||
|
||||
# Ignore query hints
|
||||
#nohints = true
|
||||
|
||||
# Disable the HTTP interface (Defaults to localhost:27018).
|
||||
#nohttpinterface = true
|
||||
|
||||
# Turns off server-side scripting. This will result in greatly limited
|
||||
# functionality
|
||||
#noscripting = true
|
||||
|
||||
# Turns off table scans. Any query that would do a table scan fails.
|
||||
#notablescan = true
|
||||
|
||||
# Disable data file preallocation.
|
||||
#noprealloc = true
|
||||
|
||||
# Specify .ns file size for new databases.
|
||||
# nssize = <size>
|
||||
|
||||
# Accout token for Mongo monitoring server.
|
||||
#mms-token = <token>
|
||||
|
||||
# Server name for Mongo monitoring server.
|
||||
#mms-name = <server-name>
|
||||
|
||||
# Ping interval for Mongo monitoring server.
|
||||
#mms-interval = <seconds>
|
||||
|
||||
# Replication Options
|
||||
|
||||
# in master/slave replicated mongo databases, specify here whether
|
||||
# this is a slave or master
|
||||
#slave = true
|
||||
#source = master.example.com
|
||||
# Slave only: specify a single database to replicate
|
||||
#only = master.example.com
|
||||
# or
|
||||
#master = true
|
||||
#source = slave.example.com
|
||||
|
||||
# Mongo 3.6 requires binding to non-localhost, but because we use ufw for a firewall,
|
||||
# allow all IPs to connect
|
||||
net.bindIpAll = true
|
||||
|
||||
# in replica set configuration, specify the name of the replica set
|
||||
replSet = nbset
|
||||
#snmp:
|
||||
|
|
Loading…
Add table
Reference in a new issue