Deploy activepieces-template

Activepieces + Postgres and Redis. Generated secrets. Healthcheck.

Deploy activepieces-template

Just deployed

/usr/src/app/cache

Redis

redis:7

Just deployed

Postgres

postgres:16

Just deployed

/var/lib/postgresql/data

Deploy and Host Activepieces on Railway

Self-host Activepieces with Railway Postgres and Redis. Official ghcr.io/activepieces/activepieces image, one container in WORKER_AND_APP mode. This is the Apache-2.0 Zapier alternative on c17.io/stacks/activepieces. n8n is a separate template: 9o4t/n8n.

No LLM or SaaS API keys are required to boot. The template generates AP_ENCRYPTION_KEY and AP_JWT_SECRET, and wires AP_FRONTEND_URL to the public domain.

About Hosting Activepieces

Activepieces is open-source workflow automation (pieces instead of Zapier apps). Connections are encrypted with AP_ENCRYPTION_KEY. The job queue is Redis. Structured data is Postgres.

On Railway this is three services:

ServiceSourcePublicNotes
activepiecesghcr.io/activepieces/activepiecesYesAP_PORT=${{PORT}}. Health GET /api/v1/health.
PostgresRailway pluginNoFlows, runs, connections.
RedisRailway pluginNoBullMQ queue. Required for this image; in-memory Redis is not used.

The first account you create becomes the platform admin. There is no default username or password.

Losing AP_ENCRYPTION_KEY makes stored connections unreadable, even from a full database backup.

Common Use Cases

  • Apache-2.0 replacement for Zapier / Make
  • Webhook and polling pieces without a task meter
  • MCP / agent tools on top of the same flows
  • Customer-data automations you will not put on a SaaS graph

Dependencies for Activepieces Hosting

Required (wired or generated — you do not type these)

VariableServiceSource
PORTactivepiecesInjected. Also set AP_PORT=${{PORT}}.
AP_FRONTEND_URLactivepieceshttps://${{RAILWAY_PUBLIC_DOMAIN}}
AP_ENCRYPTION_KEYactivepiecesGenerated openssl rand -hex 16 (32 hex chars). Back this up.
AP_JWT_SECRETactivepiecesGenerated openssl rand -hex 32.
AP_ENVIRONMENTactivepiecesprod
AP_EXECUTION_MODEactivepiecesUNSANDBOXED (single-container Railway)
AP_CONTAINER_TYPEactivepiecesWORKER_AND_APP
AP_DB_TYPEactivepiecesPOSTGRES
AP_POSTGRES_URLactivepieces${{Postgres.DATABASE_URL}} (discrete host fields ignored when this is set)
AP_REDIS_URLactivepieces${{Redis.REDIS_URL}}

Optional

VariableRequiredWhy
AP_TELEMETRY_ENABLEDNoDefault false in this template.
AP_OPENAI_API_KEYNoOnly if you enable semantic piece search (AP_TOOL_SEARCH_ENABLED=true). BYO.
Slack / Google / other piece keysNoAdded inside Activepieces connections after deploy. Not template variables.

Volume

MountServiceWhy
/usr/src/app/cacheactivepiecesPiece cache. Optional but avoids re-downloads on every deploy.

Why Deploy Activepieces on Railway?

Make and Zapier meter runs. Activepieces is Apache-2.0: you pay Railway (app + Postgres + Redis) and the APIs you call. A small team graph is usually a few dollars a month plus tokens. Trial credits cover the first deploy for most people. c17 never charges you — Railway usage is the referral / template kickback.

See TEMPLATE.md for the marketplace / composer shape.

Run locally

cp .env.example .env
# set AP_ENCRYPTION_KEY (openssl rand -hex 16)
# set AP_JWT_SECRET and AP_POSTGRES_PASSWORD (openssl rand -hex 32)
docker compose up

UI: http://localhost:8080 — create the first admin account. Health: GET /api/v1/health.

License

Activepieces is Apache-2.0. This repo is config and docs only.


Template Content

Redis

redis:7

Postgres

postgres:16

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
121
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
101
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
870