docker-webman-mongolog/README.md

13 lines
561 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# docker-webman-mongolog
基于docker-webman-jsonrpc引入mongodb服务升级monolog到3.x版本实现将日志直接写入mongodb代替文本日志。
## Usage
默认情况下直接执行`docker compose up -d`即可。
`/log/mongod.conf`文件是mongodb服务的配置文件可以在这里修改端口号。
`/log/db`目录是mongodb的数据目录git不跟踪这个目录但是生产环境中这个目录中的数据就是日志数据。
`/api`目录是webman的项目目录其中关于日志通道的配置在`config/log.php`中。