<?xml version="1.1" encoding="UTF-8" ?>
<template>
<uid>github.open-webui</uid>
<name>Open WebUI</name>
<version>git-a73b644-ollama</version>
<branch>admin</branch>
<date>2025-03-01T21:43:00+05:00</date>
<maintainer>Ildar <ildar@bayrell.org></maintainer>
<marketplace>https://cloud.bayrell.org/</marketplace>
<xml name="bayrell.org" priority="20">https://cloud.bayrell.org/marketplace/github.open-webui.xml</xml>
<arch>amd64</arch>
<arch>arm64v8</arch>
<yaml>
<services>
<_var_app_name_>
<image>ghcr.io/open-webui/open-webui:git-a73b644-ollama</image>
<hostname>{{.Service.Name}}.{{.Task.ID}}.local</hostname>
<environment>
<OLLAMA_BASE_URL>_var_ollama_base_url_</OLLAMA_BASE_URL>
</environment>
<ports>
<target>8080</target>
<published>3000</published>
<protocol>tcp</protocol>
<mode>host</mode>
</ports>
<volumes>_var_app_name_:/app/backend/data</volumes>
</_var_app_name_>
</services>
<volumes>
<_var_app_name_ />
</volumes>
</yaml>
<variables>
<variable>
<name>_var_ollama_base_url_</name>
<label>base url</label>
<type>string</type>
<default>http://database_ollama:11434/</default>
</variable>
</variables>
<admin>
<port>8080</port>
<nginx>
location /applications/admin/_var_service_name_/ {
proxy_pass http://8080._var_service_name_.cloud_network.example/;
proxy_set_header X-ROUTE-PREFIX "/applications/admin/_var_service_name_";
rewrite /applications/admin/_var_service_name_/(.*) /$1 break;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
break;
}
</nginx>
</admin>
<modificators>
<li>org.bayrell.modificator.cloud_os</li>
<li>org.bayrell.modificator.deploy_hostname</li>
</modificators>
<patch>
<name>Template patch</name>
<operations>
<operation type="replace">
<path>/template/yaml/services/_var_app_name_/deploy/update_config/order</path>
<value>
<order>stop-first</order>
</value>
</operation>
</operations>
</patch>
</template>