Open WebUI on Azure Container Apps

Running Open WebUI on Azure Container Apps means moving sessions, metadata, vectors and files out of the container into managed services. This page explains the design, the trade-offs and what to confirm before you build.

On this page

Open WebUI on Azure Container Apps: when the platform fits

Azure Container Apps fits a shared Open WebUI deployment when your team is willing to treat the container as disposable and move every piece of state into managed services. The container filesystem cannot hold data, so user accounts, chats, uploads, knowledge bases and sessions must live outside the replica. If your team expects to store anything on the container's local disk, or to run a single instance on a local volume and assume it will survive revisions, Container Apps is the wrong starting point for this workload.

The Open WebUI scaling guide sets the minimum shape. Multi-instance deployments need PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from several processes well. Multiple replicas also need Redis as a shared store for sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. The guide also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required once you run several workers or replicas. Confirm the current guidance for each item in the scaling documentation before you size anything, because these requirements shape the whole design.

Plan the license early. Under the Open WebUI License, the branding protection clause forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Count active users over a rolling month, not seats on a contract, and decide before rollout whether you will keep the branding, buy an enterprise license, or stay under the threshold. Ask the vendor to confirm how this applies to your user model before the first production user signs in.

Replicas keep no state, so every data path leaves the container

The diagram starts with users sending HTTPS requests to the Container Apps ingress, which routes them to Open WebUI replicas. Each replica talks to PostgreSQL for application data, Azure Managed Redis for sessions and websocket state, and Blob Storage for uploads and knowledge files. Key Vault sits on its own boundary and supplies secrets to the replicas when they start. Check that the replica's local disk appears only as temporary space, because anything written there is lost when a replica is replaced.

Replicas reach state only through four separate Azure services.

Which Azure service replaces which local state

Open WebUI stores its application data in a relational database: user accounts, groups, chat history, model and tool configuration, and settings. By default the project uses SQLite, a file on disk. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. On Azure Container Apps, replicas are ephemeral, so a database file inside a container is lost when the revision restarts or the replica is replaced. SQLite remains acceptable for single-replica deployments, evaluation and small teams only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Container Apps replicas do not provide locally attached SSD or NVMe for this purpose, so the database belongs in a managed service.

  • Service: Azure Database for PostgreSQL holds the Open WebUI database, reached over a private endpoint or a restricted network path.
  • Connection settings: The database URL is supplied as a secret reference, not as a plain environment value.
  • Sizing: Connection count grows with replicas and workers, so check the connection limits of the chosen tier before you add replicas.
  • Backups: Confirm the backup retention and point-in-time restore options of the chosen tier with Microsoft.
  • Migrations: Plan a one-time migration from any existing SQLite file, tested on a copy first.

Confirm the PostgreSQL version and tier you will use against the Open WebUI version you pin.

Configuration options and when each fits

This table compares the database, vector store and shared-state choices for Open WebUI on Azure Container Apps, from a single-replica evaluation to a multi-replica production setup. Read each row by asking whether you run one replica or several, and whether data must survive a container restart. The main takeaway is that the local filesystem cannot hold data in any production pattern, and that multiple replicas bring in Redis and an external vector store as requirements.

OptionWhen it fitsTrade-off
SQLite on one replicaEvaluation or a small team on a single replica, with the database on storage that persists across restartsContainer Apps replicas do not keep local files reliably, so the database needs durable storage and a single writer. Confirm the storage mount behavior with Azure documentation before relying on it.
Azure Database for PostgreSQLAny multi-replica deployment, or any production setup that needs durable relational data outside the containerAdds a managed database to size, back up and connect through private networking. Scaling guidance requires PostgreSQL for multi-instance use.
Default ChromaDBA single-process evaluation where retrieval is a minor feature and no concurrent workers runThe scaling guide warns the default ChromaDB will crash in multi-process setups, so it does not fit several workers or replicas.
External vector store such as PGVectorMultiple replicas or workers that need shared retrieval, with the vector data kept in the same managed PostgreSQL serviceRequires enabling the extension and planning its storage and index sizing. Other supported stores such as Qdrant or Milvus add a service to operate.
Azure Managed RedisAny multi-replica deployment, for shared sessions, websocket connections and application stateWithout Redis, sign-out does not revoke tokens, which remain valid until expiry, by default 4 weeks. Confirm the tier and connection settings with Azure.
Blob Storage for uploads and knowledgeMultiple replicas that must all reach the same uploaded files and knowledge contentFiles on a replica's local disk are not visible to other replicas. Confirm the integration path for your Open WebUI version.
Single replica without RedisEvaluation only, where one replica handles all sessionsScaling to a second replica without Redis breaks shared state. Treat the single-replica setup as a stepping stone, not a production endpoint.

How to set up Open WebUI on Container Apps step by step

This sequence builds a Container Apps environment in which Open WebUI keeps its database, sessions, uploads and secrets outside the container, so replicas can be added or replaced without losing data. Each step ends with a check that the previous layer works before the next one depends on it.

  1. Create the resource group and network

    Create a resource group for the deployment, then a virtual network with subnets for the Container Apps environment and the private endpoints or access paths used by PostgreSQL, Redis, Blob Storage and Key Vault. Decide early whether the environment is internal or externally reachable, because that choice affects ingress, DNS and certificate handling later. Done means the resource group and network exist in the region you chose, and you have written down the subnet ranges and the DNS zones each service will need. Confirm current networking requirements for Container Apps with Azure's documentation before you size the subnets.

  2. Provision PostgreSQL, Redis, Blob Storage and Key Vault

    Provision Azure Database for PostgreSQL for the Open WebUI application database, Azure Managed Redis for shared state across replicas, a storage account with a Blob container for uploads and knowledge files, and a Key Vault for secrets. Restrict public network access where your design allows it and confirm that the container app's subnet can reach each service. Done means each resource exists, you can connect to PostgreSQL from the subnet with a test client, and you have confirmed the Redis endpoint and the container name for Blob Storage.

  3. Store the secret key and database URL in Key Vault

    Generate a strong secret key for Open WebUI and store it in Key Vault along with the PostgreSQL connection string and the Redis connection details. Keep these values out of deployment templates, environment files and shell history. Name the secrets consistently so the container app references them by name. Done means each secret is listed in Key Vault, its value can be read only by identities you have approved, and you have recorded the version or secret URI the container app will use.

  4. Configure managed identity access to Key Vault

    Enable a managed identity for the container app, then grant it read access to the required secrets in Key Vault using the permission model your Key Vault uses. Reference the secrets from the container app as secret references rather than plain environment values. Done means the container app starts with the identity assigned, a test revision can read the secrets, and a principal without the grant cannot read them. Confirm the current Key Vault access model and role names in Azure's documentation.

  5. Deploy a pinned Open WebUI image tag

    Deploy Open WebUI from a specific image tag rather than a floating tag such as latest, and set the environment variables that point the application at PostgreSQL, Redis, the Blob-backed file storage and the Key Vault secrets. Set the minimum and maximum replica counts deliberately, since more than one replica requires the shared services from the earlier steps. Done means the revision reports healthy, the application loads in a browser over the ingress path you chose, and the tag is recorded in your change log so you know exactly what is running. Check the Open WebUI release notes for the tag you pin and for any required configuration changes.

  6. Verify sessions, uploads and sign-out revocation

    Test the behavior that proves the state is shared. Sign in, upload a file and confirm it is stored in Blob Storage rather than the container. Force a second replica to serve the session, or restart the active revision, and confirm the session continues. Then sign out and confirm the previous token is rejected. Done means each test passes and is recorded. If sign-out does not revoke the token, Redis is not configured for the replicas, and you should fix that before any users sign in. Scaling notes in the Open WebUI documentation explain why Redis is needed for this.

Security and operations to plan for Azure

Open WebUI on Azure Container Apps depends on several managed services, each with its own access path, logs and recovery method. The cards below cover the controls to decide before go-live and the checks to repeat after each change. Most of them come down to one question: where does each secret, session and file live, and who can reach it?

Managed identity and Key Vault references

Keep the secret key, database password and Redis credential out of plain environment variables in the container app definition. Grant the app's managed identity read access to only the vault secrets it needs, and reference those secrets from the app configuration. Check that the secret key is set once and kept stable, because changing it can invalidate existing sessions and encrypted data. Confirm who can read or rotate vault secrets, since that is the path to every other credential.

Scaling docs

Private endpoints for PostgreSQL and Redis

Place Azure Database for PostgreSQL and Azure Managed Redis behind private endpoints so replicas reach them over the virtual network rather than public addresses. Confirm that the Container Apps environment is injected into a subnet that can resolve and route to those private endpoints, and that DNS resolution works from inside the replicas. Disable public network access on the data services where your design allows it. Test the path from a running replica, not only from a workstation.

Token lifetime and revocation through Redis

Open WebUI tokens stay valid until they expire, by default after 4 weeks, unless Redis is in place to coordinate sign-out across replicas. With Redis configured, signing out takes effect across every replica rather than only on the instance that received the request. Decide the session lifetime your security policy requires and set it deliberately. Test sign-out from one browser and confirm that an existing token fails on a second replica.

Logging and audit trails

Container Apps sends console output to the Log Analytics workspace you connect, so decide retention and access to that workspace before go-live. Application logs record sign-ins, admin actions and errors, but confirm which events Open WebUI writes at your chosen log level and which ones your audit process needs. Route diagnostic settings for PostgreSQL and Redis to the same workspace. Restrict who can query logs, because prompts and file names can appear in them depending on configuration.

Pinned images and upgrade checks

Deploy a specific Open WebUI image tag rather than a floating tag, so a replica restart never pulls a new release unannounced. Before each upgrade, read the release notes on the project's GitHub releases page, review the license terms that apply to the target version, and test against a copy of the database. Keep the previous image tag in your registry so a rollback is a revision change rather than a rebuild. Record the tag in your change log.

Latest release in facts
v0.12.3
Open WebUI releases

Backup and restore of database and blobs

Back up PostgreSQL with its managed backup and point-in-time restore settings, and separately back up the Blob Storage container that holds uploads and knowledge files. The two must be restored to matching points in time, or chats will reference files that no longer exist. Ask Azure which retention and geo-redundancy options apply to your region and tier. Run a restore into a separate resource group at least once and start Open WebUI against it to confirm that login, chats and documents all work.

What the design means for upgrades and recovery

Because conversations, accounts and configuration sit in Azure Database for PostgreSQL and files sit in Blob Storage, a new container app revision can be rolled out without copying application data between environments. The container itself holds no state, so rolling back a bad image means routing traffic to an earlier revision, not restoring data. The exception is schema change. When a new Open WebUI release alters the database schema, a rollback to an older image may no longer match the database, so the restore plan has to cover the database, not just the container. Before each upgrade, confirm with the vendor's release notes whether the release includes migrations, take a point-in-time restore target in PostgreSQL, and rehearse restoring that point into a separate server. Check the Open WebUI upgrade guidance and the release notes for the version you are moving to, since the license terms also changed with v0.6.6.

Scaling out adds replicas, and this is where the Redis dependency becomes operational. The scaling guide requires Redis as a shared store for sessions, websocket connections and application state when more than one replica runs. Without it, users can lose live streaming sessions when a request lands on another replica, and signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Treat Azure Managed Redis as a dependency in the recovery plan: decide what users experience during a Redis failover, whether the Container Apps ingress keeps websocket connections open long enough for your longest conversations, and how a token revocation gap is handled for offboarded users. Confirm these behaviors in a load test with replicas before go-live, not after the first incident.

Limits to confirm in your Azure environment

The items below are assumptions to verify, not settled facts. Each one depends on how Azure services behave in your tenant, region and network, and on how Open WebUI behaves under your traffic pattern. Confirm each with the vendor or in a proof-of-concept run before you size the environment or sign a scope.

Redis connection pattern support

Open WebUI needs Redis as a shared state store for sessions, websocket connections and application state once it runs more than one replica. Confirm that Azure Managed Redis accepts the client connection pattern Open WebUI uses, including TLS settings, the authentication method and any clustering or protocol behavior the client expects. Without Redis, signing out does not revoke tokens, and those tokens stay valid until they expire, by default after 4 weeks. Test sign-out and token revocation across two replicas before you rely on it.

Scaling docs

Ingress timeouts for websockets and streaming

Chat responses stream, and websocket connections carry session state. Check the idle and request timeouts at the Container Apps ingress, and whether a long model response or a quiet streaming period can trigger a disconnect. Run a long conversation and a slow model response through the full path, including any front door or gateway you place in front of the app. Record the timeout values you observe, because they decide whether users see dropped streams.

File storage mounting for uploads

Uploads and knowledge files must stay reachable from every replica, and the local filesystem of a container cannot hold them. Confirm how your chosen approach presents Blob Storage to the app: whether a volume mount, an object storage integration or a sidecar is supported for your configuration, and how it behaves with file locking, latency and large files. Test an upload on one replica and a download on another, then delete the replica that wrote it and confirm the file survives.

Regional availability of each service

Container Apps, Azure Database for PostgreSQL, Azure Managed Redis, Blob Storage and Key Vault do not all offer the same features in every region. Check that each service, and each specific SKU or feature you plan to use, is available in the region where your data must reside. Confirm the same for any private networking or zone redundancy you need. A mismatch found after design can force a re-architecture of the network and data layout.

Sizing for concurrent users

Concurrency drives replica count, database connections, Redis load and the outbound calls to your model providers. Sizing from a seat count alone is unreliable, because active users, prompt length, streaming duration and RAG use change the load. Ask the vendor how the scaling guide's worker and connection settings map to your replica sizes, then run a load test that reflects your expected peak. Record CPU, memory, database connections and Redis usage per replica, and set scale rules from those measurements.

Scaling docs

Questions teams ask before deploying Open WebUI on Azure

What drives the cost of an Open WebUI build on Azure Container Apps?

The cost depends mostly on how many services the design needs and how much of the work is new. The core pieces are the Container Apps environment, Azure Database for PostgreSQL, Azure Managed Redis, Blob Storage for uploads and knowledge files, Key Vault for secrets, and the networking that connects them. Each one is a recurring Azure charge that your subscription pays directly, so the design choices, such as replica count, database tier and whether the app is reachable from the internet or only from a private network, change the monthly bill. DeployOpen's fee covers the planning, build, configuration, testing and documentation, and it is set from the written scope, not from a rate card. Ask any partner to separate one-time build effort from the Azure consumption you will carry afterward.

How long does an Open WebUI build on Azure Container Apps take?

The duration is set by the scope agreed in writing, and the biggest drivers are the identity integration, the network design and the number of environments. A single-team deployment with existing identity and networking moves faster than one that needs private endpoints, a new Entra ID app registration process, and separate staging and production stacks. Testing of long streaming conversations and file uploads also takes time, because these behave differently behind Container Apps ingress than on a single server. Ask for a timeline tied to named milestones and to the approvals your own change process requires.

What must our internal team provide before the build starts?

Plan for these inputs before work begins:

  • An Azure subscription, resource group and rights to create Container Apps, PostgreSQL, Redis, Storage and Key Vault resources, plus role assignments for managed identities
  • An identity provider decision, such as Microsoft Entra ID through OIDC, and someone who can register the application and grant group claims
  • Virtual network and subnet ranges, private DNS zones, and an answer on whether users reach the app over the internet or only through VPN or a gateway
  • A DNS name and the certificate approach, including who owns renewal
  • Named owners for backup policy, log retention and sign-off on the data handling settings

Missing any of these usually stalls the build, so confirm them with your cloud and identity teams during scoping.

Can our own team build Open WebUI on Azure without a partner?

Yes, if your team has Azure platform skills and time to run the build as a project. The Open WebUI scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments and Redis as a shared state store for sessions, websocket connections and application state when running several replicas, and it requires shared file storage so uploads stay reachable from every replica. It also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is needed. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Your team must understand these settings, test them, and keep them correct through upgrades. A partner helps when the work must finish on a fixed date or when your staff cannot take on that testing load.

Do we need the Enterprise License to change branding for more than 50 users?

Under the Open WebUI License, branding protection applies to deployments that exceed 50 users in any rolling 30-day period. Altering or removing branding in that case requires either an enterprise license or written contributor permission. Open WebUI's enterprise licenses allow white-labeling and custom branding, and pricing is not published, so you request a quote from enterprise sales with an expected seat count. Confirm the exact terms with the project and your legal team before you change any branding, because the license text governs and this is not legal advice. Code through v0.6.5 remains under BSD-3-Clause, so the license version you deploy matters.

What does keeping Open WebUI upgraded on Azure involve over time?

Upgrades are recurring work that you should plan into operations. Open WebUI publishes new releases on GitHub, for example v0.12.0 on October 10, v0.12.3 on October 16, and v0.11.0 in July, so the cadence is frequent and each release needs review. A safe upgrade covers pinned image tags, a database backup, a staging run against your PostgreSQL and Redis settings, a check of the license version, and a rollback plan. Container Apps revisions help with rollback, but schema changes in the database may not reverse cleanly. Ask any partner whether the retainer covers upgrades, regression testing and security patches, and what happens when a release changes the vector store or authentication settings.

Why can't Open WebUI keep its data on the container's local filesystem in Azure?

Container Apps replicas are disposable, so anything written to the container filesystem can disappear when a replica restarts, is replaced during a revision change, or is scaled out to another instance. Uploads, knowledge files and the application database must live on shared, durable services. In this design that means Azure Database for PostgreSQL for application data, Azure Managed Redis for shared state, and Blob Storage for files, with Key Vault holding secrets such as the secret key. Scaling guidance also points out that SQLite is acceptable only for a single replica on locally attached SSD or NVMe storage, which Container Apps does not provide as a database file location for a shared deployment. Verify each storage mount and backup policy in a test environment before go-live.

How DeployOpen scopes and delivers this on your Azure tenant

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including Azure subscriptions the client controls. For Open WebUI on Azure Container Apps, the work starts with a written scope that settles which replicas, data services and secrets the deployment needs before any resource is created.

How we scope

  • The written scope lists the Azure subscription, region, network layout and Container Apps environment the deployment will use.
  • It names the PostgreSQL, Redis, Blob Storage and Key Vault resources, plus who owns and pays for each one.
  • Engagements are fixed-scope, so deliverables, acceptance tests and timelines are agreed in writing before work starts.

How we build

  • Infrastructure is defined as code so the Container Apps environment and its data services can be rebuilt consistently.
  • Secrets such as the Open WebUI secret key and database credentials are placed in Key Vault and referenced by the app, not baked into images.
  • Each replica is tested for shared session state, uploads and websocket behavior before the deployment is accepted.

How we hand over

  • Handover includes architecture documentation, runbooks for scaling, upgrades and backups, and the configuration record for each service.
  • The client's team receives a walkthrough of Key Vault access, managed identities and the revision rollout process.
  • Acceptance testing results and any open risks are written down so the client's security and compliance teams can review them.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade work follows the release notes for each Open WebUI version, including the license terms that apply to the chosen release.
  • Retainer scope, response expectations and service levels are confirmed in writing, so the client knows what is covered before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.