nginx with internal docker network #1203
Replies: 3 comments 10 replies
-
I added then environment variable for FORWARDED_ALLOW_IPS to address Here's the updated docker-compose yaml
|
Beta Was this translation helpful? Give feedback.
-
ok...this turned out to be a browser caching issue. refreshed cache and the open-webui displays and is functional. here's nginx minimal config that worked:
|
Beta Was this translation helpful? Give feedback.
-
After getting the portal to function, it was having the issue that it couldn't connect to host.docker.internal:11434. This required changing the host's host.docker.internal to a hard-coded internal docker IP. Here's the compose yaml to create an internal network w/ specific subnet and assign an IP from that subnet to ollama container:
Finally...both the ollama and open-webui containers are restricted to internal access and open-webui is reverse proxied thru nginx (see nginx config above). @tjbck: this docker compose file and nginx config may be useful to some others that really want to lock down local llms. |
Beta Was this translation helpful? Give feedback.
-
I'm attempting to run open-webui in docker on an internal network. Since the network's internal it can't access the host/internet, I'm also attempting to reverse proxy to the host via nginx. I'm successfully able to serve up static pages from open-webui (eg favicon.png) using nginx but not the dynamic pages. Also open-webui works without using this internal network and reverse proxy.
Although this is a docker/nginx question, the reason I'm asking this here is because it appears that open-webui is running on Uvicorn. According to Uvicorn's documentation (https://www.uvicorn.org/deployment/#running-behind-nginx) these settings may need to be set:
--forwarded-allow-ips='*'
and--proxy-headers
.My questions:
I'm not an expert at any of this so I'm sure I have the wrong configuration somewhere.
Here's my docker-compose yaml:
Here's my nginx config (copied from https://www.uvicorn.org/deployment/#running-behind-nginx):
here are open-webui container logs
here are nginx container logs:```
Beta Was this translation helpful? Give feedback.
All reactions