tech.

Docker Open WebUI with OpenAI API

Created on

This article takes note of useful information about using Docker to create a WebUI for OpenAI API.

Installations

  1. Install docker
  2. Install Open WebUI with Docker

This takes a few minutes to download the image.

  1. Run the docker image
docker run -d -p 3000:8080 -e OPENAI_API_KEY={your API key} -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
  1. Open the WebUI from localhost:3000

Troubleshooting

If you encounter any issues, you can check the logs using the following command:

docker logs open-webui

Check if the port is already in use:

lsof -i :3000

References

https://github.com/open-webui/open-webui?tab=readme-ov-file