title: Packaging a web application with SignalR in docker-compose
body: <p>Good afternoon, I have a problem with packaging a web application with SignalR in docker. When running in docker, only REST requests work, websockets do not work. When you run the project through Visual Studio or dotnet run, everything works.</p>
  <p><strong>dockerfile</strong></p>
  <pre><code>FROM mcr.microsoft.com/dotnet/sdk:5.0
  WORKDIR /app
  EXPOSE 83
  EXPOSE 446
  COPY ./publish .
  ENTRYPOINT [&quot;dotnet&quot;, &quot;Service.API.dll&quot;]
  </code></pre>
  <p><strong>docker-compose</strong></p>
  <pre><code>version: &quot;3.8&quot;
  services: 
    myvoice_vote_API:
            image: service_api
            container_name: service_API
            ports: 
                - &quot;83:83&quot;
                - &quot;446:446&quot;
            environment: 
                - ASPNETCORE_URLS=https://+:446;http://+:83
  
  </code></pre>