added config for mongodb to reduce log verbosity

This commit is contained in:
michael 2025-10-08 18:34:06 -05:00
parent 7921079446
commit 99b49fbc1e
2 changed files with 10 additions and 1 deletions

8
config/mongod.conf Normal file
View file

@ -0,0 +1,8 @@
# MongoDB Configuration for Reduced Logging
systemLog:
verbosity: 0
component:
network:
verbosity: 0 # Suppress connection logs
replication:
verbosity: 0

View file

@ -18,12 +18,13 @@ services:
image: mongo:7.0
container_name: accessible-video-mongodb
restart: unless-stopped
command: ["mongod", "--quiet", "--logappend"]
command: ["mongod", "--config", "/etc/mongod.conf"]
environment:
MONGO_INITDB_DATABASE: ${MONGODB_DB:-accessible_video}
volumes:
- mongodb-data:/data/db
- mongodb-config:/data/configdb
- ./config/mongod.conf:/etc/mongod.conf:ro
networks:
- accessible-video-network
healthcheck: