Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/docs/services/all.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ Complete directory of all one-click services available in Coolify, organized by
- [Web Check](/services/web-check) - All-in-one website analysis tool.
- [Weblate](/services/weblate) - Web-based translation tool.
- [Windmill](/services/windmill) - Open-source developer platform.
- [Zero](/services/zero) - Query-driven sync engine for TypeScript apps backed by Postgres.

## Documentation

Expand Down
37 changes: 37 additions & 0 deletions content/docs/services/zero.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: "Zero"
description: "Query-driven sync engine for TypeScript apps backed by Postgres."
og:
description: "Deploy Zero's self-hosted zero-cache on Coolify with Postgres logical replication and a persistent SQLite replica."
category: "Development"
icon: "/docs/images/services/zero.svg"
---

# Zero

<ZoomImage src="/docs/images/services/zero.svg" alt="Zero logo" />

## What is Zero?

Zero is a query-driven sync engine for TypeScript applications. It runs `zero-cache` next to Postgres, maintains a SQLite replica, and syncs the rows your app queries to connected clients for fast local-first reads and writes.

## Notes on deployment

The Coolify service template deploys `zero-cache` with a PostgreSQL database configured for logical replication. You still need to deploy your own frontend and API server separately, then point Zero at the API endpoints that implement your query and mutation handlers.

The template requires these environment variables before deployment:

- `ZERO_QUERY_URL`: URL of your API `/query` endpoint.
- `ZERO_MUTATE_URL`: URL of your API `/mutate` endpoint.

The template also creates these automatically:

- `ZERO_ADMIN_PASSWORD`: generated by Coolify and used for Zero admin endpoints such as `/statz` and the inspector.
- `ZERO_UPSTREAM_DB`, `ZERO_CVR_DB`, and `ZERO_CHANGE_DB`: point to the bundled PostgreSQL service.
- `ZERO_REPLICA_FILE`: stores the SQLite replica on a persistent volume.

## Links

- [Official website](https://zero.rocicorp.dev/?utm_source=coolify.io)
- [Self-hosting documentation](https://zero.rocicorp.dev/docs/deployment?utm_source=coolify.io)
- [Configuration reference](https://zero.rocicorp.dev/docs/zero-cache-config?utm_source=coolify.io)
4 changes: 4 additions & 0 deletions public/images/services/zero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/generated/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,13 @@
"description": "Self-hosted music scrobble database.",
"category": "Media"
},
{
"name": "Zero",
"slug": "zero",
"icon": "/docs/images/services/zero.svg",
"description": "Query-driven sync engine for TypeScript apps backed by Postgres.",
"category": "Development"
},
{
"name": "Zipline",
"slug": "zipline",
Expand Down
Loading