Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker Compose setup guide. #356

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tranhd95
Copy link

@tranhd95 tranhd95 commented Dec 2, 2024

Hi, I needed to restrict the public access of my Pipelines instance running in a Docker container on my VPS. Figured out that the simplest way is to run both Open WebUI and Pipelines through Docker compose which handles the networking and we can restrict the access just to the Open WebUI container (service) without need to publish the port to the host and using --add-host=host.docker.internal:host-gateway.

Added an example docker-compose.yaml file and relevant guide in the README.md.

@ezavesky
Copy link

Hi @tranhd95 -- thanks, this helped me to get started! May I suggest a few additional tweaks so that the local version is aware of the docker-compose version? These modifications will turn off authentication on your local OpenWebUI container and make sure the pipeline instance is auto-configured. Also, if you're adding a new file in the repo maybe you can just refer to that in the README instead of repeating the stanzas and have two places to update. Thanks again!

Under the 'services' chunk that creates the local OpenWebUI container

  environment:
      WEBUI_AUTH: False
      WEBUI_NAME: Local Test
      ENABLE_SIGNUP: False
      ENABLE_OLLAMA_API: False
      OPENAI_API_BASE_URLS: http://pipelines:9099;
      OPENAI_API_KEYS: 0p3n-w3bu!;

Under the 'pipelines' chunk that creates the local pipelines container

 environment:
      PIPELINES_API_KEY: 0p3n-w3bu!
      RESET_PIPELINES_DIR: False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants