Skip to content

Commit

Permalink
Merge pull request #141 from atlanticwave-sdx/140.less-db-log-noise
Browse files Browse the repository at this point in the history
Make MongoDB log to a file instead of on the console
  • Loading branch information
sajith committed Jun 12, 2024
2 parents 2c072aa + 0cd9967 commit 20a74e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ services:
- type: volume
source: mongodb
target: /data/db:Z
command:
# MongoDB logs can drown out everything else, so we'll write
# them to a file. To watch the log messages, use: `docker exec
# -it <container> tail -f /var/log/mongodb/mongod.log`
- '--logpath'
- '/var/log/mongodb/mongod.log'
healthcheck:
test: ["CMD", "mongosh", "localhost:${MONGO_PORT}/test", "--quiet"]

Expand Down

0 comments on commit 20a74e8

Please sign in to comment.