infra: added granular logging configuration for mongodb
This commit is contained in:
+3
-2
@@ -85,8 +85,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${MONGO_PORT}:${MONGO_PORT}"
|
- "${MONGO_PORT}:${MONGO_PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mongo:/data/db
|
- ./data/mongodb:/data/db
|
||||||
command: mongod --quiet --setParameter logComponentVerbosity='{"network":{"verbosity":0}}'
|
- ./mongod.conf:/etc/mongod.conf:ro
|
||||||
|
command: ["mongod", "--config", "/etc/mongod.conf"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: |
|
test: |
|
||||||
mongosh --quiet --eval "db.adminCommand('ping')" || \
|
mongosh --quiet --eval "db.adminCommand('ping')" || \
|
||||||
|
|||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
# MongoDB Configuration File
|
||||||
|
|
||||||
|
# Network settings
|
||||||
|
net:
|
||||||
|
port: 27017
|
||||||
|
bindIp: 0.0.0.0
|
||||||
|
|
||||||
|
# Storage settings
|
||||||
|
storage:
|
||||||
|
dbPath: /data/db
|
||||||
|
|
||||||
|
# Security settings
|
||||||
|
security:
|
||||||
|
authorization: enabled
|
||||||
|
|
||||||
|
# System log settings
|
||||||
|
systemLog:
|
||||||
|
destination: file
|
||||||
|
path: /dev/stdout
|
||||||
|
logAppend: false
|
||||||
|
verbosity: 0
|
||||||
|
quiet: true
|
||||||
|
component:
|
||||||
|
accessControl:
|
||||||
|
verbosity: -1
|
||||||
|
command:
|
||||||
|
verbosity: 0
|
||||||
|
control:
|
||||||
|
verbosity: 0
|
||||||
|
ftdc:
|
||||||
|
verbosity: 0
|
||||||
|
geo:
|
||||||
|
verbosity: 0
|
||||||
|
index:
|
||||||
|
verbosity: 0
|
||||||
|
network:
|
||||||
|
verbosity: 0
|
||||||
|
query:
|
||||||
|
verbosity: 0
|
||||||
|
replication:
|
||||||
|
verbosity: 0
|
||||||
|
sharding:
|
||||||
|
verbosity: 0
|
||||||
|
storage:
|
||||||
|
verbosity: 0
|
||||||
|
write:
|
||||||
|
verbosity: 0
|
||||||
|
transaction:
|
||||||
|
verbosity: 0
|
||||||
Reference in New Issue
Block a user