Add settings for DockerCompose

This commit is contained in:
Sergey Nazarov 2024-08-03 15:01:59 +03:00
parent ea5cb89121
commit 5aa5c2b183
2 changed files with 25 additions and 3 deletions

View File

@ -30,7 +30,6 @@ public class Startup
.Get<LocalizerConfiguration>();
Localizer.Initialize(localizerConfiguration);
services.AddSingleton<ILocalizer, Localizer>();
services.AddAppServices(Configuration);
services.AddSingleton<ICurrentDateProvider, DefaultCurrentDateProvider>();

View File

@ -1,11 +1,34 @@
{
"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-client/telegram-client-.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/"
},
"UsersRestEaseOptions": {
"BasePath": "http://nocr-users:80"
"BasePath": "http://nocr-users:8080"
},
"TextMatcherRestEaseOptions": {
"BasePath": "http://nocr-text-matcher:80"
"BasePath": "http://nocr-text-matcher:8080"
}
}