瀏覽代碼

Update README.md

Timothy J. Baek 1 年之前
父節點
當前提交
5d07c3634b
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -43,6 +43,15 @@ docker run -d -p 3000:3000 --add-host=host.docker.internal:host-gateway --name o
 
 Your Ollama Web UI should now be hosted at [http://localhost:3000](http://localhost:3000). Enjoy! 😄
 
+#### Connecting to Ollama on a Different Server
+
+If Ollama is hosted on a server other than your local machine, you can connect to it using the following environment variable:
+
+```bash
+docker build -t ollama-webui .
+docker run -d -p 3000:3000 --add-host=host.docker.internal:host-gateway -e OLLAMA_ENDPOINT="http://[insert your ollama url]" --name ollama-webui --restart always ollama-webui
+```
+
 ## What's Next? 🚀
 
 ### To-Do List 📝