Previousy I tried contacting on slack on the above issue and recieved a reply too.
To summarise my issue, I have set up my label studio locally with minio container separate setup. So when i add source storage it says cannot connect to endpoint url: ``botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: " http://minio:9001/images
"`
Replication of my error:
- docker compose up -d (docker-compose.yml)
- docker compose up -d (minio-compose.yml)
docker-compose.yml:
version: "3.9"
services:
nginx:
build: .
image: heartexlabs/label-studio:latest
restart: unless-stopped
ports:
- "6060:80" # Map to port 80 inside the container
- "6061:443" # Map to port 443 inside the container
depends_on:
- app
environment:
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-192.168.1.29}
# Optional: Specify SSL termination certificate & key
# Just drop your cert.pem and cert.key into folder 'deploy/nginx/certs'
# - NGINX_SSL_CERT=/certs/cert.pem
# - NGINX_SSL_CERT_KEY=/certs/cert.key
volumes:
- ./mydata:/label-studio/data:rw
- ./deploy/nginx/certs:/certs:ro
- ./deploy/default.conf:/etc/nginx/nginx.conf # Mount the custom nginx.conf
# Optional: Override nginx default conf
# - ./deploy/my.conf:/etc/nginx/nginx.conf
command: nginx
app:
stdin_open: true
tty: true
build: .
image: heartexlabs/label-studio:latest
restart: unless-stopped
expose:
- "6000"
depends_on:
- db
environment:
- DJANGO_DB=default
- POSTGRE_NAME=postgres
- POSTGRE_USER=postgres
- POSTGRE_PASSWORD=
- POSTGRE_PORT=5432
- POSTGRE_HOST=db
- LABEL_STUDIO_HOST=${LABEL_STUDIO_HOST:-192.168.1.29}
- JSON_LOG=1
- LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true
- LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/home/cypher
- MINIO_ENDPOINT=http://minio:9000
- MINIO_ACCESS_KEY=minio_admin_do_not_use_in_production
- MINIO_SECRET_KEY=minio_admin_do_not_use_in_production
- MINIO_BUCKET=label-studio
# - LOG_LEVEL=DEBUG
volumes:
- ./mydata:/label-studio/data:rw
command: label-studio-uwsgi
db:
image: pgautoupgrade/pgautoupgrade:13-alpine
hostname: db
restart: unless-stopped
# Optional: Enable TLS on PostgreSQL
# Just drop your server.crt and server.key into folder 'deploy/pgsql/certs'
# NOTE: Both files must have permissions u=rw (0600) or less
# command: >
# -c ssl=on
# -c ssl_cert_file=/var/lib/postgresql/certs/server.crt
# -c ssl_key_file=/var/lib/postgresql/certs/server.key
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ${POSTGRES_DATA_DIR:-./postgres-data}:/var/lib/postgresql/data
- ./deploy/pgsql/certs:/var/lib/postgresql/certs:ro
Minio-compose.yml:
`version: '3'` `services:`
` minio:`
` image: ` `docker.io/bitnami/minio:2022`
` ports:`
` - '9000:9000'`
` - '9001:9001'`
` networks:`
` - minionetwork`
` volumes:`
` - 'minio_data:/data'`
` environment:`
` - MINIO_ROOT_USER=your_username`
` - MINIO_ROOT_PASSWORD=your_pasword` `networks:`
` minionetwork:`
` driver: bridge` `volumes:`
` minio_data:`
` driver: local`
In minio i created bucket name images and created user, and user grp and policy(copy pasted policy yml as specified in the website:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::images"
]
},
{
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::images/*"
]
}
]
}
)
Then created access key in user and added access key of the user in specified placeholders but this doesn’t show any change in the error.
Even tried adding access key from outside in general but both doesnt change my error. Even tried http://localhost/:9000, localhost:9001, minio:9000, minio:9001