label-studio-ml-backend
label-studio-ml-backend copied to clipboard
Unable to connect SAM model with label studio
Validation error
Can't connect to ML backend http://localhost:9090/, health check failed. Make sure it is up and your firewall is properly configured.
I have used below docker_compose file to run the services.
version: "3.8"
services: redis: image: redis:alpine container_name: redis hostname: redis volumes: - "./data/redis:/data" expose: - 6379
label_studio: image: heartexlabs/label-studio:1.8.1 container_name: label_studio ports: - 8082:8080 volumes: - "./data/mydata:/data" networks: - label_server_net # Connect to the custom network
server: container_name: server build: . environment: - MODEL_DIR=/data/models - RQ_QUEUE_NAME=default - REDIS_HOST=redis - REDIS_PORT=6379 - LABEL_STUDIO_USE_REDIS=true - TEST_WITH_CPU=${TEST_WITH_CPU} ports: - 9090:9090 depends_on: - redis volumes: - "./data/server:/data" - "./logs:/tmp" networks: - label_server_net # Connect to the custom network
volumes: mydata:
networks: label_server_net: # Define the custom network
please help to resolve the issue
some problems