dotrun icon indicating copy to clipboard operation
dotrun copied to clipboard

Expose all the container ports

Open jkfran opened this issue 3 years ago • 1 comments

At the moment, dotrun exposes the port in the env file, but a project might need to expose more ports for different purposes.

It would be great if dotrun could detect what ports a container is exposing and do the mapping automatically or at least let the user specify the ports to expose.

jkfran avatar Aug 04 '22 14:08 jkfran

I got another use case for this. I tend to use dotrun to run also candidate take home tests (to avoid installing dependencies and node/npm on local system). They tend to use random ports, don't have .env and sometimes don't have start script in package.json.

This means they can't be run via dotrun simply, to achieve that I need create .env file with correct port and make sure that there is a start command to expose it.

bartaz avatar Aug 17 '22 05:08 bartaz