Add configurations for docker-compose

This commit is contained in:
Sergey Nazarov 2024-08-03 14:39:31 +03:00
parent d9590a61d0
commit 44d4fb6c55
4 changed files with 35 additions and 2 deletions

View File

@ -23,6 +23,11 @@
<Content Include="..\..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
<Content Include=".secrets\appsettings.protected.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project>

View File

@ -0,0 +1,28 @@
{
"Serilog": {
"MinimumLevel": {
"Default": "Information"
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Level:u3}] {Timestamp:MM-dd HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "/var/log/nocr/telegram-listener/telegram-listener-.log",
"outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}",
"fileSizeLimitBytes": 104857600,
"rollingInterval": "Day",
"rollOnFileSizeLimit": true
}
}
]
},
"RebusRabbitMqOptions": {
"ConnectionString": "amqp://admin:admin@nocr-rabbitmq:5672/"
}
}

View File

@ -13,7 +13,7 @@
{
"Name": "File",
"Args": {
"path": "/var/log/nocr/text-matcher/nocr-text-matcher-.log",
"path": "/var/log/nocr/telegram-listener/telegram-listener-.log",
"outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}",
"fileSizeLimitBytes": 104857600,
"rollingInterval": "Day",

View File

@ -13,7 +13,7 @@
{
"Name": "File",
"Args": {
"path": "/var/log/nocr/text-matcher/nocr-text-matcher-.log",
"path": "/var/log/nocr/telegram-listener/telegram-listener-.log",
"outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}",
"fileSizeLimitBytes": 104857600,
"rollingInterval": "Day",