Back to Templates
EmDash logo

EmDash

v1.4.0

EmDash is an Astro-native CMS with a visual editor, structured content, media library, and passkey authentication. This template builds the official blog site with persistent SQLite and local media storage.

Deploy on Dokploy

Deploy EmDash on Dokploy

  1. Install Dokploy on your server if you haven't already.
  2. In your Dokploy panel, open a project and click Create Service → Template.
  3. Search for EmDash and click Create — Dokploy configures domains, environment variables, and volumes for you.

Alternatively, create a Compose service, go to Advanced → Import from Base64, and paste this payload:

base64
ewogICJjb21wb3NlIjogInNlcnZpY2VzOlxuICBlbWRhc2g6XG4gICAgYnVpbGQ6XG4gICAgICBjb250ZXh0OiBodHRwczovL2dpdGh1Yi5jb20vZW1kYXNoLWNtcy9lbWRhc2guZ2l0IzEwYmViOGM1YTk5ZTQxYzNhODU1NGIwOWFjNTEyM2M0ZGRkYzhkMTFcbiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZFxuICAgIGVudmlyb25tZW50OlxuICAgICAgRU1EQVNIX1NJVEVfVVJMOiBcIiR7RU1EQVNIX1NJVEVfVVJMOj9TZXQgdGhlIHB1YmxpYyBIVFRQUyBvcmlnaW59XCJcbiAgICAgIEVNREFTSF9FTkNSWVBUSU9OX0tFWTogXCIke0VNREFTSF9FTkNSWVBUSU9OX0tFWTotfVwiXG4gICAgICBFTURBU0hfVFJVU1RFRF9QUk9YWV9IRUFERVJTOiB4LWZvcndhcmRlZC1mb3JcbiAgICAgIEhPU1Q6IDAuMC4wLjBcbiAgICAgIFBPUlQ6IFwiNDMyMVwiXG4gICAgZXhwb3NlOlxuICAgICAgLSBcIjQzMjFcIlxuICAgIHZvbHVtZXM6XG4gICAgICAtIGVtZGFzaC1kYXRhOi9hcHAvZGF0YVxuICAgICAgLSBlbWRhc2gtdXBsb2FkczovYXBwL3VwbG9hZHNcbiAgICBoZWFsdGhjaGVjazpcbiAgICAgIHRlc3Q6XG4gICAgICAgIC0gQ01EXG4gICAgICAgIC0gbm9kZVxuICAgICAgICAtIC1lXG4gICAgICAgIC0gXCJmZXRjaCgnaHR0cDovLzEyNy4wLjAuMTo0MzIxL19lbWRhc2gvYXBpL3NldHVwL3N0YXR1cycpLnRoZW4ociA9PiBwcm9jZXNzLmV4aXQoci5vayA/IDAgOiAxKSwgKCkgPT4gcHJvY2Vzcy5leGl0KDEpKVwiXG4gICAgICBzdGFydF9wZXJpb2Q6IDYwc1xuICAgICAgaW50ZXJ2YWw6IDMwc1xuICAgICAgdGltZW91dDogMTBzXG4gICAgICByZXRyaWVzOiAzXG4gICAgc3RvcF9ncmFjZV9wZXJpb2Q6IDMwc1xuICAgIGxvZ2dpbmc6XG4gICAgICBkcml2ZXI6IGpzb24tZmlsZVxuICAgICAgb3B0aW9uczpcbiAgICAgICAgbWF4LXNpemU6IFwiMTBtXCJcbiAgICAgICAgbWF4LWZpbGU6IFwiM1wiXG5cbnZvbHVtZXM6XG4gIGVtZGFzaC1kYXRhOlxuICBlbWRhc2gtdXBsb2FkczoiLAogICJjb25maWciOiAiW3ZhcmlhYmxlc11cbm1haW5fZG9tYWluID0gXCIke2RvbWFpbn1cIlxuXG5bY29uZmlnXVxuZW52ID0gW1xuICBcIkVNREFTSF9TSVRFX1VSTD1odHRwczovLyR7bWFpbl9kb21haW59XCIsXG4gIFwiRU1EQVNIX0VOQ1JZUFRJT05fS0VZPVwiLFxuXVxuXG5bW2NvbmZpZy5kb21haW5zXV1cbnNlcnZpY2VOYW1lID0gXCJlbWRhc2hcIlxucG9ydCA9IDQzMjFcbmhvc3QgPSBcIiR7bWFpbl9kb21haW59XCIiCn0=

Configuration

The exact Docker Compose and template configuration this template deploys.

Instructions

EmDash

This template builds EmDash 1.4.0 from its release commit, using the upstream Dockerfile. It packages the official Blog theme, SQLite, and local media storage in one Node.js service. The scheduler runs inside that service; a separate database or worker is unnecessary.

First deployment

  1. Import the template. In Dokploy, assign your final domain to service emdash, port 4321, and enable HTTPS with a valid certificate.
  2. Set EMDASH_SITE_URL to that exact public origin, for example https://blog.example.com, without a path. The generated value uses the initial Dokploy domain. Update it if you change the domain.
  3. Deploy. The first build compiles the upstream monorepo and downloads dependencies and fonts. Allow several minutes and at least 4 GB of build memory, plus memory for Dokploy and other services. Subsequent builds can reuse Docker's cache.
  4. Open https://<your-domain>/_emdash/admin/ promptly, complete the site setup, and register your administrator passkey. The first visitor can claim an unconfigured site; keep access restricted until setup is complete. Use your final HTTPS domain from the start: passkeys are bound to it. No default password or email provider is required.
  5. Create and publish a post, then open its public page. Upload a media file and verify its URL before adding real content.

Use Dokploy's isolated deployment option. Only Traefik should reach the app: the template trusts its X-Forwarded-For header for client-IP rate limiting. No host port or custom network is needed. Run one replica with these local SQLite and filesystem volumes.

Optional features

The stock Blog build works without cloud accounts, AI keys, or email credentials. Email delivery, magic links, and email recovery require a provider plugin; no production console email provider exists. Register another passkey and keep recovery access before relying on the site.

Plugins with encrypted secret settings require EMDASH_ENCRYPTION_KEY. Generate it with the official command on Node.js 22.23.4 or later:

sh

Copy the complete emdash_enc_v1_... value into Dokploy's Environment tab and redeploy. Keep it private and back it up separately. The template leaves it empty because Dokploy's generic password/base64 helpers do not produce this application's required key format.

Adding email or authentication providers, changing the theme, using PostgreSQL/S3, or enabling sandboxed plugins requires a custom Astro project/build. Setting provider credentials alone does not add those integrations to the stock Blog build. Its configuration includes no plugin sandbox runner. See Node.js deployment and plugin sandbox.

Persistence, backups, and upgrades

  • emdash-data stores /app/data/data.db, including content, users, passkeys, settings, and automatically generated preview/IP secrets.
  • emdash-uploads stores /app/uploads, including media and application-generated backup artifacts.
  • Node's default filesystem session store is outside these volumes. Container recreation can sign users out; register a passkey so you can sign in again.
  • Back up both volumes and any encryption key off-server. For a consistent offline SQLite backup, stop writes and copy the database together with any -wal and -shm files. Restore into an isolated installation and verify content, login, and media. The app's JSON archives are not a full restorable database backup; see upstream recovery guidance.
  • Before upgrading, take a verified recovery point and read the release notes. Change the pinned Git commit and metadata together, then rebuild. Pending core migrations run on the first request; a code rollback alone does not undo them. Keep the matching old build, database, media, and keys for recovery.

The upstream Dockerfile runs as root. Named volumes are writable without a separate ownership initializer; changing the user requires testing permissions for the database, uploads, and session directory. The health check queries setup state through the database, but does not prove media writes, passkey login, scheduled publishing, or optional integrations work. The build has no public origin at build time, so local media is served without Astro image optimization; the runtime origin still configures URLs and authentication.

Related Templates

Plark logo

Plark

Version: latest

Self-hosted Website Builder

cmscontent-managementblog
Postiz logo

Postiz

Version: latest

Postiz is a modern, open-source platform for managing and publishing content across multiple channels.

cmscontent-managementpublishing
Quire Ink logo

Quire Ink

Version: 2.2.1

A self-hosted blog in one container: a real editor over Markdown with tables, footnotes and mathematics, scheduled publishing, newsletters over your own SMTP, comments with a built-in spam gate, cookie-free analytics, full-text search and a book reading mode. Importers bring a WordPress, Ghost, Substack or Medium blog across with its redirects and images. There is no database service to run and nothing is fetched from a third party: two SQLite files and an uploads folder are the whole of it. After the first start, open the container logs for the one-time link that claims the blog and creates your account.

cmsself-hostedblog
Typecho logo

Typecho

Version: stable

Typecho 是一个轻量级的开源博客程序,基于 PHP 开发,支持多种数据库,简洁而强大。

blogcmsphp
Appsmith logo

Appsmith

Version: v1.94

Appsmith is a free and open source platform for building internal tools and applications.

cms
Castopod logo

Castopod

Version: 1.15.7

Castopod is a free, open-source podcast hosting platform made for podcasters who want to engage and interact with their audience: publish episodes, follow download analytics, and federate with the Fediverse over ActivityPub, with Podcasting 2.0 features built in.

podcastmediafediverse

Self-host EmDash in minutes

Dokploy is a free, open source deployment platform. Deploy EmDash and 700+ other templates on your own infrastructure with a single click.