-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Deployment examples
Nathan Sarrazin edited this page Jun 3, 2024
·
2 revisions
Here are a list of ways you can deploy chat-ui
git clone https://github.com/huggingface/chat-ui.git
cd chat-ui && npm i
npm run dev
There are two docker images. Use chat-ui if you have an external mongoDB you would like to use, and use chat-ui-db if you'd like an image with everything included. The image is configured using environment variables.
- Create a
.env.localfile with your config options - Pass your env variables in three ways:
- Pass the whole
.env.localwith the env varDOTENV_LOCAL - Bind mount the
.env.localin the docker image - Pass each env variable directly in the image.
- Pass the whole
DOTENV_LOCAL=$(<.env.local) docker run -e DOTENV_LOCAL chat-ui-db
docker run --mount type=bind,source="$(pwd)/.env.local",target=/app/.env.local chat-ui-db
docker run -e MONGODB_URL=mongodb://localhost:27017 chat-ui-db
Warning
This may change in ways that break your deployments as we improve HuggingChat and make the chart more stable.
This is what we use in production for HuggingChat. See chart folder.
Coming soon !
Coming soon !
Coming soon !
Coming soon !