Star
Try it

How to expose a docker-compose service to the localhost ?

While usign docker compose most people want to expose a docker-compose service to the localhost. Using compose craft playground you have to : First Select the service you want to expose then in the editor, clik on the networking tab. Then click on « Add mapping », then set the parameters.

Example: by setting Host port on 8080 and Container one on 80, the localhost:8080 of the host running the docker-compose is forwarded to the container localhost:80 inside the container