Spaces:
Runtime error
Runtime error
File size: 1,921 Bytes
58faf93 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
version: '3'
services:
chroma8000:
image: chromadb/chroma:latest
volumes:
- chroma8000_index_data:/index_data
ports:
- 8000:8000
chroma8001:
image: chromadb/chroma:latest
volumes:
- chroma8001_index_data:/index_data
ports:
- 8001:8000
chroma8002:
image: chromadb/chroma:latest
volumes:
- chroma8002_index_data:/index_data
ports:
- 8002:8000
chroma8003_with_token_auth:
image: chromadb/chroma:latest
volumes:
- chroma8003_with_token_auth_index_data:/index_data
ports:
- 8003:8000
environment:
CHROMA_SERVER_AUTHN_PROVIDER: chromadb.auth.token_authn.TokenAuthenticationServerProvider
CHROMA_SERVER_AUTHN_CREDENTIALS: test-token
CHROMA_AUTH_TOKEN_TRANSPORT_HEADER: AUTHORIZATION
# curl -H 'Authorization: Bearer test-token' http://localhost:8003/api/v1/collections
chroma8004_with_basic_auth:
image: chromadb/chroma:latest
volumes:
- chroma8004_with_basic_auth_index_data:/index_data
ports:
- 8004:8000
environment:
CHROMA_SERVER_AUTHN_PROVIDER: chromadb.auth.basic_authn.BasicAuthenticationServerProvider
CHROMA_SERVER_AUTHN_CREDENTIALS: username:$2b$12$MHfPya6K/Z1qCgJ0Jv227OVyDiOE1k8LaVy.CEU2WZWuAD72l02be
# curl -H 'Authorization: Basic dXNlcm5hbWU6JDJiJDEyJE1IZlB5YTZLL1oxcUNnSjBKdjIyN09WeURpT0UxazhMYVZ5LkNFVTJXWld1QUQ3MmwwMmJl' http://localhost:8004/api/v1/collections
volumes:
chroma8000_index_data:
chroma8001_index_data:
chroma8002_index_data:
chroma8003_with_token_auth_index_data:
chroma8004_with_basic_auth_index_data:
#docker run -d --rm -p "8000:8000" \
# -e CHROMA_SERVER_AUTHN_CREDENTIALS="test-token" \
# -e CHROMA_AUTH_TOKEN_TRANSPORT_HEADER="AUTHORIZATION" \
# -e CHROMA_SERVER_AUTHN_PROVIDER="chromadb.auth.token_authn.TokenAuthenticationServerProvider" \
# --name chroma_with_token chromadb/chroma:0.5.0
|