How can I host Open Web UI on Fly.io ?

I am new to Fly.io. My client wants to host Open Web UI on Fly. I could easily host it with docker run -d -p 3000:8080 -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main . But I am not sure how to do it with fly tool.

I understand that fly looks for Dockerfile. The open web ui github repo has a Dockerfile which I think do the job of running app. But how do I add the options like -v open-webui:/app/backend/data for persistence and --restart always incase something goes wrong. Any help would be appreciated.

The docs are very good, start here. Don’t try to accomplish everything at once; get a container working first, then add each feature by looking up that feature in the docs. I can promise that it’s addictive :star_struck:.

Fly probably isn’t right for you if you want a one-click GUI solution; it’s more like an engineers’ playground, where spinning up machines and clusters across regions is made as simple as a few commands (or API calls). You can expect a console-oriented experience and a learning curve.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.