AICoE / prometheus-anomaly-detector

A newer more updated version of the prometheus anomaly detector (https://github.com/AICoE/prometheus-anomaly-detector-legacy)
GNU General Public License v3.0
597 stars 151 forks source link

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

Closed dthpulse closed 3 years ago

dthpulse commented 3 years ago

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 commented 2 years ago

Good evening @dthpulse - how did you resolve this?

dthpulse commented 2 years ago

Hi @adamsavage,

just redirected it to diff port on host

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