LobeHub v2 is a renamed, re-architected LobeChat: deploying it on Synology Docker now means a PostgreSQL + S3 + Redis Compose stack, not a single container. This guide replaces the dead 2023 instructions with a fresh-install v2 walkthrough for Synology owners comfortable running a multi-service stack.
First, the Rename: What Changed Since the Old Guide
The old version of this guide is dead, and the reason is not a minor version bump. In January 2026 the project renamed itself from LobeChat to LobeHub. The GitHub repository moved from lobehub/lobe-chat to lobehub/lobehub, the Docker image is now lobehub/lobehub, and the old image stopped updating in January 2026. Every instruction in the original article that starts with “search the Synology Registry for LobeChat” points at an image that no longer receives updates.
The deployment model changed with the rename. The old guide described a single container, a local port, and two environment variables, and framed the result as a one-click private ChatGPT. Version 2 is a different kind of software: a chat and agent workbench backed by a database, object storage, and a gateway. If you follow the old steps today you will install an outdated image and miss the services the current version actually needs. This rewrite is a fresh-install v2 guide, not an edit of the old one.
One expectation to set before anything else: v2 is not lighter than the old version. It is closer to a small production application with a database. If what you really want is a single container you can spin up and forget, this guide will tell you plainly at the end what the alternatives are — but the official v2 deployment is a Compose stack, and the rest of this article assumes you are fine with that.
What v2 Actually Needs on Synology
Here is the stack, per the official documentation. Each service has a job, and skipping one is not an option the docs support.
| Service | What it stores | Port |
|---|---|---|
| LobeHub | The chat and agent workbench itself | 3210 |
| PostgreSQL (with PGVector) | Sessions, conversations, user data | — |
| S3-compatible storage (RustFS by default) | Uploaded files and conversation images | 9000 / 9001 (console) |
| Redis (optional) | Cache and background tasks | — |
| Agent Gateway | Agent runs and device connections | 8787 / 8788 |
Before you start, check your Synology against the official requirements: a minimum of 2 CPU cores, 4 GB of RAM, and 20 GB of disk, with 4 or more cores, 8 GB or more of RAM, and 50 GB or more of disk recommended. The official docs give those numbers for the full stack, not for LobeHub alone. Smaller Synology models with limited memory may not comfortably run all of it at once — this article does not invent per-model memory figures, so use the official specs above as your self-check and watch actual usage after startup. You will also need five ports free or remappable: 3210, 9000, 9001, 8787, and 8788.
A backup note that belongs here, not at the end: backing up the LobeHub container alone is not a backup. Your conversations live in PostgreSQL and your files live in S3 storage, so a real backup means a pg_dump of the database and an archive of the RustFS data directory, plus a copy of your .env file. The official docs publish those commands; treat them as part of the deployment, not an afterthought.
Deploy with Docker Compose, Step by Step
The official deployment starts from the Compose files, not from the Synology Registry search box. Fetch the official docker-compose.yml and .env.example with the curl commands in the official Docker Compose documentation, copy the example to .env, and fill in the variables. The ones that matter most are the auth keys (KEY_VAULTS_SECRET, AUTH_SECRET, JWKS_KEY and its public half JWKS_PUBLIC_KEY), the app URL (APP_URL), the database URL (DATABASE_URL), the S3 set (S3_ENDPOINT, S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY), and the gateway variables. Then run docker compose up -d and check the logs for the line database migration pass — that is the official signal that the empty database was built correctly.
Two pitfalls deserve their own paragraphs because both fail silently. First, INTERNAL_APP_URL is required for Compose deployments. If you leave it unset, it falls back to APP_URL, and an APP_URL set to a host IP address is unreachable from inside the container — the result is that async features such as AI image generation quietly stop working while everything else looks fine. The official recommendation is http://localhost:3210 or http://lobe:3210. Second, S3_ENDPOINT must be an address the browser can reach. The container-internal address, for example http://rustfs:9000, belongs only in S3_INTERNAL_ENDPOINT. Writing the internal address into S3_ENDPOINT breaks conversation image uploads. If browser uploads later fail with a network error, the documented fix is to re-run the rustfs-init step with docker compose up -d --force-recreate rustfs-init.
One more key warning, stated as strongly as the docs state it: the example JWKS_KEY in the official documentation, with key id 6823046760c5d460, must be replaced with your own generated key. Anyone who knows the published example value can forge tokens your instance would accept. Generate fresh auth keys before the first startup, and keep the .env file out of any shared folder or public repository.
On Synology, the landing looks like this in general terms: Container Manager, Project, New — that is the DSM 7.2 and later Compose workflow — with .env and docker-compose.yml in the same project directory. Volume paths become absolute Synology paths, for example under /volume1/docker/lobehub/, and the directories must already exist in File Station, because Container Manager does not create subdirectories for you. The exact volume number depends on your own shared folders. This landing is adapted from general Compose principles and third-party guides, not from a tested step-by-step run on Synology, so treat the menu flow as a guide and check it against your own DSM version rather than as screenshots. For the broader Docker Compose environment on a new host, the same stack thinking applies as in our Docker Agent YAML guide, which covers running a multi-service setup from a single definition file.
Updates follow the same pattern: back up .env first, then docker compose pull && docker compose up -d. If a port collides with something already on your Synology, change LOBE_PORT in .env rather than editing the Compose file. The official one-click install script is Unix-only; Windows readers should go through WSL 2 instead of trying to run it natively.
Connect Ollama for Local Models
Local models are still a first-class route in v2, and Ollama is still the way to get them. Run Ollama as its own container or point LobeHub at an Ollama service already on your LAN, then add it as a provider inside LobeHub’s settings, where you configure the model list and connection details. Model pulling and selection follow normal Ollama conventions, and this section deliberately covers only the LobeHub side of the connection — installing and tuning Ollama itself is a separate topic. Windows readers running Ollama under WSL can find the container setup context in our WSL native containers guide; the key detail there is the same one that applies on any host: from inside a container, localhost means the container itself, so a host-side Ollama needs a LAN address or host gateway address, not localhost.
If You Only Want the Old One-Container Experience
Plainly: v2 has no official lightweight single-container route. The single-image Docker page exists, but it still requires an external PostgreSQL database and S3 storage, so it is not the old one-container experience under a new name. If lightweight is the priority, the honest alternatives are the LobeHub desktop app or LobeHub Cloud — check the official pricing page for current terms rather than trusting any second-hand free-tier figure quoted elsewhere.
The same honesty applies to old data. There is no one-click migration from a v1 LobeChat install into v2. The official documentation guarantees a clean build from an empty database, and its “Upgrading an Existing Deployment” section covers existing v2 Compose deployments adding the gateway — it is not a v1-to-v2 data bridge. Install v2 fresh, keep your old instance running until you have decided what to do with it, and treat any old chat history as unconfirmed for migration. Do not overwrite your old data on the assumption that it will carry over.
On licensing, the current position is confirmed against the official LICENSE page, not second-hand: LobeHub is released under the LobeHub Community License, which is Apache 2.0 with additional conditions. Using it as-is, including as a service, does not require a commercial license; a commercial license is required only if you develop and distribute a derivative work. Personal and home self-hosting is unaffected.
FAQ
Is LobeChat now called LobeHub?
A: Yes. The project was renamed from LobeChat to LobeHub in January 2026, the repository moved to lobehub/lobehub, and the Docker image is now lobehub/lobehub. The old image stopped updating in January 2026, so any guide that still tells you to pull the old image is out of date.
Why does LobeHub v2 need PostgreSQL and S3?
A: Version 2 splits responsibilities across services: conversations and user data live in PostgreSQL, uploaded files live in S3-compatible storage, and caching and background tasks use Redis. A single container with local storage cannot serve those roles reliably in a server deployment, which is why the official deployment is a Compose stack.
Can I still run it with a single docker run command?
A: Not in the old sense. The official v2 deployment is a Compose stack, and the single-image Docker page still requires an external PostgreSQL database and S3 storage. If you want a lightweight single-container experience, the desktop app or LobeHub Cloud are the alternatives the project points to.
Can I connect local models with Ollama?
A: Yes. Run Ollama as its own container or on another machine on your LAN, then add it as a provider inside LobeHub’s settings. Model pulling and selection follow normal Ollama conventions; remember that from inside a container, localhost means the container itself, so a host-side Ollama needs a LAN or host-gateway address.