Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept chroma credentials from environment variables, e.g.: ENV CHROMA_ADMIN_DATABASE_URL #6

Open
jannikhst opened this issue Jun 8, 2024 · 0 comments

Comments

@jannikhst
Copy link

For the dockerized version of this admin client it would be nice if we can predefine the credentials for the db within the docker compose file. Here would be the use case (see last line of code):

  chroma:
    image: chromadb/chroma:latest
    restart: always
    container_name: chroma
    networks:
      - internal_network
    healthcheck:
      test:
        [
          "CMD-SHELL",
          "curl -f localhost:8000/api/v1/heartbeat || exit 1"
        ]
      interval: 20s
      timeout: 30s
      retries: 5
    environment:
      CHROMA_SERVER_AUTH_CREDENTIALS: password
      CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER: chromadb.auth.token.TokenConfigServerAuthCredentialsProvider
      CHROMA_SERVER_AUTH_PROVIDER: chromadb.auth.token.TokenAuthServerProvider

  chroma-db-admin:
    image: fengzhichao/chromadb-admin
    container_name: chroma-db-admin
    depends_on:
      chroma:
        condition: service_healthy
    restart: always
    networks:
      - traefik_web
      - internal_network
    ports:
      - 3001:3000
    environment:
      CHROMA_ADMIN_DATABASE_URL: http://chroma:8000?authProvider=TokenAuthServerProvider&token=password

Setting this environment variable would then skip the login screen when visiting http://localhost:3001

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant