feat: using my own pip server #6409

Closed
opened 2025-11-11 16:54:25 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @navidatanary-netizen on GitHub (Sep 15, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

I am running on a private network, disconnected from the internet.
I have my own pip server, I would like tools to install packages from there.

without rebuilding the docker image, how can I achieve that? can I set an environment variable or configure in the admin panel?
thanks!

Desired Solution you'd like

environment variable or a place in the admin panel to configure pip server url

Alternatives Considered

rebuilding the docker image and changing the pip conf

Additional Context

No response

Originally created by @navidatanary-netizen on GitHub (Sep 15, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description I am running on a private network, disconnected from the internet. I have my own pip server, I would like tools to install packages from there. without rebuilding the docker image, how can I achieve that? can I set an environment variable or configure in the admin panel? thanks! ### Desired Solution you'd like environment variable or a place in the admin panel to configure pip server url ### Alternatives Considered rebuilding the docker image and changing the pip conf ### Additional Context _No response_
Author
Owner

@rgaricano commented on GitHub (Sep 15, 2025):

docker run -d -p 3000:8080 \  
  -e PIP_PACKAGE_INDEX_OPTIONS="--index-url https://your-pip-server.com/simple --trusted-host your-pip-server.com" \  
  -v open-webui:/app/backend/data \  
  --name open-webui \  
  ghcr.io/open-webui/open-webui:main

or create a pip.conf and attach it to container:

# Create pip.conf on host  
mkdir -p ./pip-config  
cat > ./pip-config/pip.conf << EOF  
[global]  
index-url = https://your-pip-server.com/simple  
trusted-host = your-pip-server.com  
extra-index-url = https://pypi.org/simple  
EOF  
  
# Mount it into the container  
docker run -d -p 3000:8080 \  
  -v ./pip-config/pip.conf:/etc/pip.conf \  
  -v open-webui:/app/backend/data \  
  --name open-webui \  
  ghcr.io/open-webui/open-webui:main
@rgaricano commented on GitHub (Sep 15, 2025): ``` docker run -d -p 3000:8080 \ -e PIP_PACKAGE_INDEX_OPTIONS="--index-url https://your-pip-server.com/simple --trusted-host your-pip-server.com" \ -v open-webui:/app/backend/data \ --name open-webui \ ghcr.io/open-webui/open-webui:main ``` or create a pip.conf and attach it to container: ``` # Create pip.conf on host mkdir -p ./pip-config cat > ./pip-config/pip.conf << EOF [global] index-url = https://your-pip-server.com/simple trusted-host = your-pip-server.com extra-index-url = https://pypi.org/simple EOF # Mount it into the container docker run -d -p 3000:8080 \ -v ./pip-config/pip.conf:/etc/pip.conf \ -v open-webui:/app/backend/data \ --name open-webui \ ghcr.io/open-webui/open-webui:main ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6409