Text of forums.docker.com › t › docker-compose-port-not-being-forwarded › 121908 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Docker compose - port not being forwarded - Docker Desktop - Docker Community Forums

Docker compose - port not being forwarded Docker Desktop nunoleitao (Nunoleitao) March 5, 2022, 1:02pm 1 Hello, I am using docker compose to tie together a couple of services, but I can’t seem to get port forwarding to work. This is a .NET Core webapi. Here’s my docker-compose.yml: version: '3.8' networks: extract-core: name: extract-core driver: bridge services: extract-api: container_name: extract-api build: Extract/ restart: always networks: - extract-core ports: - "5110:5110" environment: - ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_URLS=http://+:5110 Whenever I try to access ‘ http://localhost:5110 ’ on my local host (using curl for example), I get: curl: (52) Empty reply from server Am I missing something ? rimelek (Ákos Takács) March 6, 2022, 7:46pm 2 Please, use the code block button ( </> ) when you insert code, especially when it is yaml in which indentation matters.

You can also do it manually by replacing your three dashes with three “ ` ” (backtick) character I fixed it. Back to the issue. It looks like your port was forwarded but the server sent back an empty response. Is it possible that your server requires HTTPS conection and not plain HTTP? Related topics Topic Replies Views Activity Docker-compose up issue Docker Desktop docker-compose , windows 4 14962 April 4, 2024 Container Running but Port is not available Docker Desktop docker-compose , macos 6 25642 February 20, 2025 In Compose ports do not work Compose 8 18913 May 24, 2023 Docker Compose and Accessing core application from Outside Docker Desktop docker , docker-compose , linux 0 1138 March 4, 2023 Docker-compose does not expose port of both services (with example to reproduce) General 1 14807 January 6, 2021