feat(templates): add ElectricSQL docker compose template

This commit is contained in:
Matteo Gassend 2026-02-07 20:35:51 +01:00
parent 960ceddf15
commit 32e1fd97ae
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<svg width="300" height="260" viewBox="0 0 300 260" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M126.822 31.3968C127.716 30.5005 128.923 30 130.176 30H205.093L98.2708 136.943C97.3776 137.84 96.1702 138.339 94.9168 138.339H20L126.822 31.3968Z" fill="#D0BCFF"/>
<path d="M113.684 140.714C113.684 139.399 114.752 138.328 116.063 138.328H205.093L113.684 230V140.714Z" fill="#D0BCFF"/>
</svg>

After

Width:  |  Height:  |  Size: 401 B

View file

@ -0,0 +1,27 @@
# documentation: https://electric-sql.com/docs/guides/deployment
# slogan: Sync shape-based subsets of your Postgres data over HTTP.
# category: backend
# tags: electric,electricsql,realtime,sync,postgresql
# logo: svgs/electricsql.svg
# port: 3000
## This template intentionally does not deploy PostgreSQL.
## Set DATABASE_URL to an existing Postgres instance with logical replication enabled.
## If ELECTRIC_SECRET is set, your own backend/proxy must append it to shape requests.
services:
electric:
image: electricsql/electric:1.4.2
environment:
- SERVICE_URL_ELECTRIC_3000
- DATABASE_URL=${DATABASE_URL:?}
- ELECTRIC_SECRET=${SERVICE_PASSWORD_64_ELECTRIC}
- ELECTRIC_STORAGE_DIR=/app/persistent
- ELECTRIC_USAGE_REPORTING=${ELECTRIC_USAGE_REPORTING:-false}
volumes:
- electric_data:/app/persistent
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/v1/health"]
interval: 10s
timeout: 5s
retries: 5