HumanSignal / label-studio-ml-backend

Configs and boilerplates for Label Studio's Machine Learning backend
Apache License 2.0
587 stars 261 forks source link

How to change port for two model #653

Closed lgq-garbage closed 2 weeks ago

lgq-garbage commented 1 month ago

I use docker-compose to establish my label studio ml. I have two model,one is yolov8,anthor is sam. In yolov8,I use port 9090:9090. In sam,I use port 9091:9091 (both in docker-compose.yml and Dockerfile) But it comes to an error :sam

微信图片_20241024160342

image it seems to listen to 9090. In docker-compose.yml and Dockerfile change does not work. How can I edit port for sam.

lgq-garbage commented 1 month ago

I can go into image and use
label-studio-ml start my_ml_backend -p 9091 to change port. but this is not the best way I think.