flanker / flanker/chromadb-admin
Accept chroma credentials from environment variables, e.g.: ENV CHROMA_ADMIN_DATABASE_URL
- Dominant language
- TypeScript
- Stars
- 282
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start by locating the Next.js login flow and the configuration path that reads CHROMA_ADMIN_DATABASE_URL; done means the Dockerized admin client accepts that variable and skips the login screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript
- Domain
- authentication, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100