Skip to content

Commit

Permalink
Added: custom winston logger; Setup combined and error log files and …
Browse files Browse the repository at this point in the history
…volume mounted; modified controller code for logging
  • Loading branch information
Yug-Oswal committed Sep 9, 2023
1 parent 9129719 commit b27ee12
Show file tree
Hide file tree
Showing 13 changed files with 328 additions and 17 deletions.
11 changes: 9 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ services:
depends_on:
- mongodb
- redis
volumes:
- log-data:/app/logs

mongodb:
image: mongo
ports:
- 27017:27017
volumes:
- mongo-data:/data
- mongo-data:/data/db

redis:
image: redis
ports:
- 6379:6379

volumes:
mongo-data:
mongo-data:
name: lasertag-data
driver: local
log-data:
name: log-data
driver: local
Empty file added logs/combined.log
Empty file.
Empty file added logs/error.log
Empty file.
230 changes: 229 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b27ee12

Please sign in to comment.