An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat(templates): add ElectricSQL docker compose template
Matteo Gassend32e1fd97aefe
diff --git a/public/svgs/electricsql.svg b/public/svgs/electricsql.svgnew file mode 100644index 0000000000..bbffe200a0--- /dev/null+++ b/public/svgs/electricsql.svg@@ -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>diff --git a/templates/compose/electricsql.yaml b/templates/compose/electricsql.yamlnew file mode 100644index 0000000000..b1ae2ff961--- /dev/null+++ b/templates/compose/electricsql.yaml@@ -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