Skip to content

Instantly share code, notes, and snippets.

@jasoares
Last active February 24, 2022 21:54
Show Gist options
  • Save jasoares/f5ef539c53a625023144 to your computer and use it in GitHub Desktop.
Save jasoares/f5ef539c53a625023144 to your computer and use it in GitHub Desktop.
MongoDB config file template
systemLog:
destination: file
path: '/usr/local/var/log/mongodb/mongod0.log'
logAppend: true
storage:
dbPath: '/usr/local/var/mongodb0'
directoryPerDB: true
journal:
enabled: true
engine: wiredTiger
wiredTiger:
engineConfig:
directoryForIndexes: true
processManagement:
fork: true
pidFilePath: '/var/run/mongodb/mongod0.pid'
net:
bindIp: 127.0.0.1,192.168.10.228
port: 27011
sharding:
clusterRole: 'shardsvr'
replication:
replSetName: rs0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment