title: asp net core docker serilog configuration
body: <p>I have a dot net core 3.1 app that is configured to run in docker containers.
  While I have managed to update simple appsettings config using docker <code>-e</code> flag, I am still confused when it comes to a bit complex configuration, for example, serilog config.</p>
  
  <p>appsettings file:</p>
  
  <pre><code>{
    "AllowedHosts": "*",
    "ConnectionStrings": {
      "DefaultConnection": "Host=172.18.101.65;Port=5432;Username=postgres;Password=pgadmin;Database=identityserver;"
    },
    "Serilog": {
      "Using": [],
      "MinimumLevel": {
        "Default": "Information",
        "Override": {
          "Microsoft": "Warning",
          "System": "Warning"
        }
      },
      "Enrich": [ "FromLogContext", "WithMachineName", "WithProcesssId", "WithThreadId" ],
      "WriteTo": [
        {
          "Name": "Console"
        },
        {
          "Name": "File",
          "Args": {
            "path": "D:\\Logs\\IDSvr\\Log-.txt",
            "outputTemplate": "{Timestamp:G} {Message}{NewLine:1}{Exception:1}",
            "rollingInterval": "Day",
            "shared": true
          }
        },
        {
          "Name": "Seq",
          "Args": {
            "serverUrl": "http://localhost:8081"
          }
        }
      ]
    },
    .
    .
    .
    }
  </code></pre>
  
  <p>I could update the connection string using <code>-e ConnectionStrings__DefaultConnection="..."</code> flag, I am not sure how could I update the <code>Serilog</code>'s <code>WriteTo</code> configuration section.</p>