Setting username password for Milvus ATTU server

I have used docker-compose to install milvus, attu on ec2 machine. Below is my docker-compose file.

version: '3.5' services: etcd: container_name: milvus-etcd image: environment: - ETCD_AUTO_COMPACTION_MODE=revision - ETCD_AUTO_COMPACTION_RETENTION=1000 - ETCD_QUOTA_BACKEND_BYTES=4294967296 - ETCD_SNAPSHOT_COUNT=50000 volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd command: etcd -advertise-client-urls= -listen-client-urls --data-dir /etcd attu: container_name: attu image: zilliz/attu:v2.2.3 environment: MILVUS_URL: milvus-standalone:19530 common.security.authorizationEnabled: "true" # ATTU_ENABLE_AUTH: "true" # ATTU_USERNAME: rohan # ATTU_PASSWORD: Viscaria@2567 ports: - "8001:3000" depends_on: - "standalone" minio: container_name: milvus-minio image: minio/minio:RELEASE.2022-03-17T06-34-49Z environment: MINIO_ACCESS_KEY: minioadmin MINIO_SECRET_KEY: minioadmin volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data command: minio server /minio_data healthcheck: test: ["CMD", "curl", "-f", ""] interval: 30s timeout: 20s retries: 3 # nginx-auth: # container_name: nginx-auth # image: nginx:latest # volumes: # - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf # ports: # - "82:80" # depends_on: # - attu standalone: container_name: milvus-standalone image: milvusdb/milvus:v2.2.8 command: ["milvus", "run", "standalone"] environment: ETCD_ENDPOINTS: etcd:2379 MINIO_ADDRESS: minio:9000 volumes: - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus ports: - "19530:19530" - "9091:9091" depends_on: - "etcd" - "minio" networks: milvus:

I want to setup username and password for the attu server, so that only users i want can access to the database, because currently if we click on connect, it connects without any authentication.

Below is the screenshot of Attu UI that comes up.

enter image description here

1

Related questions 1 "StatusCode.UNAVAILABLE, internal: Milvus Proxy is not ready yet" - Milvus Vector Search Issue 0 I get 413 nginx error when uploading a file 1 pod has unbound immediate PersistentVolumeClaims, I deployed milvus server using Related questions 1 "StatusCode.UNAVAILABLE, internal: Milvus Proxy is not ready yet" - Milvus Vector Search Issue 0 I get 413 nginx error when uploading a file 1 pod has unbound immediate PersistentVolumeClaims, I deployed milvus server using 1050 PostgreSQL error: Fatal: role "username" does not exist 1577 How to force Docker for a clean build of an image 591 Validate a username and password against Active Directory? 3 Can't connect to MongoDB container from other Docker container 442 How to secure MongoDB with username and password Load 5 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like