Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

port at app.listen(8080) should be possible to define in variable #142

Closed
dthpulse opened this issue Mar 12, 2021 · 2 comments
Closed

port at app.listen(8080) should be possible to define in variable #142

dthpulse opened this issue Mar 12, 2021 · 2 comments

Comments

@dthpulse
Copy link

Right now it's not possible to run more containers on one host, because port is defined in the code app.listen(8080) and containers failing due to port already in use.
Would be good if port number will be taken from env variables also.

@adamsavage
Copy link

Good evening @dthpulse - how did you resolve this?

@dthpulse
Copy link
Author

dthpulse commented Jun 7, 2022

Hi @adamsavage,

just redirected it to diff port on host

docker run --name pad -p 8080:8080 --network host ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants