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

Podman instructions need updated #193

Open
youainti opened this issue Aug 25, 2024 · 0 comments
Open

Podman instructions need updated #193

youainti opened this issue Aug 25, 2024 · 0 comments

Comments

@youainti
Copy link

The instructions to setup/use podman are out of date. In most cases now, you should be running podman through quadlet/systemd files. I have an example that I got working (using the podlet tool) under podman 4.9.5 on OpenSUSE.

If you are going to install it as a user, then you would put this in ~/.config/containers/systemd/open-webui.container

[Unit]
Description=Open-WebUI container

[Container]
AutoUpdate=registry
ContainerName=open-webui
Environment=OLLAMA_BASE_URL=http://ollama.local:11434 ANONYMIZED_TELEMETRY=False
Image=ghcr.io/open-webui/open-webui:main
Network=slirp4netns:allow_host_loopback=true
PodmanArgs=--add-host ollama.local:10.0.2.2
PublishPort=127.0.0.1:3000:8080
Volume=open-webui:/app/backend/data

[Service]
#restart rules
Restart=on-failure
RestartSec=30s
StartLimitInterval=5min
StartLimitBurst=3

[Install]
#start on boot
WantedBy=default.target

To start things, you would then run:

# this generates
 systemctl --user daemon-reload

# Verify that the quadlet file has been recognized properly
systemctl --user list-unit-files | grep open-webui
systemctl --user list-units | grep open-webui

# start the container/service
systemctl --user start open-webui

Where should I put this in the documents?

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

No branches or pull requests

1 participant