Installation
To install GLChat on your own machine (on-premises), we provide docker images.
Installation with Docker 🐳
Follow these steps to install GLChat UI with Docker
Authenticate your docker with gcloud auth:
gcloud auth configure-docker asia-southeast2-docker.pkg.devPull the GLChat UI docker image:
docker pull \
asia-southeast2-docker.pkg.dev/gdp-labs/projects/gen-ai-template/glchat-uiCreate .env file:
You can use the following sample .env file to get you started.
ENABLE_GUEST_MODE=true
ENABLE_LOGIN_GUEST_MODE=true
NEXT_PUBLIC_CHATBOT_LOGO=https://placehold.co/50x50
NEXT_PUBLIC_CHATBOT_LOGO_LIGHT=https://placehold.co/150x50/000000/FFFFFF.png
NEXT_PUBLIC_CHATBOT_LOGO_DARK=https://placehold.co/150x50Run GLChat UI docker image as docker container:
docker run -d \
-p 3000:3000 \
--env-file .env \
--name glchat-ui \
asia-southeast2-docker.pkg.dev/gdp-labs/projects/gen-ai-template/glchat-uiAccess the GLChat UI
Open GLChat UI at http://localhost:3000 and you should see something like this (the error message is expected as we don't set environment variable for GLChat Backend):

If your system appearance is set to dark, it will look like this:

If you use Chrome, you can set CSS media feature prefers-color-scheme to switch the theme. See here for more details on Chrome's CSS media feature.
Troubleshoot
# View logs
docker logs glchat-ui
# Restart container
docker restart glchat-ui
# Stop container
docker stop glchat-uiIf you need to change the .env file:
# Stop the container
docker stop glchat-ui
# Delete the container
docker rm glchat-ui
# Re-create the container
docker run -d \
-p 3000:3000 \
--env-file .env \
--name glchat-ui \
asia-southeast2-docker.pkg.dev/gdp-labs/projects/gen-ai-template/glchat-uiInstallation with Docker Compose 🐙
Create docker-compose.yml file, you can find the sample above
Create .env file, you can find the sample in <other-page>
Execute the docker-compose.yml file
docker compose up -d --waitCheck the containers from the docker-compose.yml file:
docker compose psLast updated