On this page
- What is Activepieces and what does it need?
- How do you fetch the project and generate secrets?
- Which values do you adjust before the first start?
- How do you start the stack and verify it?
- How do you serve it over HTTPS?
- How do you build a first flow?
- How should outgoing mail be handled?
- How do you back up and update?
- What if flows fail or the page will not load?
- Questions
What is Activepieces and what does it need?
Activepieces is an MIT-licensed automation tool: you build flows from triggers and steps (called pieces) in a visual editor, much like other workflow builders, and the platform runs them on a schedule or when a webhook arrives. The documented self-host route is Docker Compose with PostgreSQL and Redis.
- Memory: 2 GB is the floor for the app, database and cache; 4 GB gives room for flows that run code steps or handle bigger payloads.
- System: Ubuntu 24.04 or 22.04, Debian 12 or 13, with Docker Engine and the Compose plugin from the Docker tutorial, plus
git. - Name: a record such as
flows.example.netpointing to the server.
How do you fetch the project and generate secrets?
sudo apt install -y git
cd /opt
sudo git clone https://github.com/activepieces/activepieces.git
sudo chown -R deploy:deploy /opt/activepieces
cd /opt/activepieces
sh tools/deploy.sh
ls -la .envThe deploy script writes .env with random values for the encryption key, the JWT secret and the database and Redis passwords. Keep a copy of that file outside the server: AP_ENCRYPTION_KEY protects the stored connections (API keys, OAuth tokens), and a restore without it leaves them unreadable.
Which values do you adjust before the first start?
Open .env and set the public address so OAuth redirects and webhook URLs are correct:
AP_FRONTEND_URL=https://flows.example.net
AP_TELEMETRY_ENABLED=falseThen open docker-compose.yml and find the port mapping of the activepieces service. Change it from all interfaces to loopback only:
ports:
- "127.0.0.1:8080:80"Docker inserts its own firewall rules for published ports, which means a UFW deny would not protect a port published on all interfaces. Binding to 127.0.0.1 avoids the problem entirely.
How do you start the stack and verify it?
docker compose -p activepieces up -d
docker compose -p activepieces ps
docker compose -p activepieces logs -f activepieces
curl -sI http://127.0.0.1:8080 | head -n 1All three containers should show as running. The image tag in docker-compose.yml tells you which release you run; docker compose -p activepieces images lists it too.
How do you serve it over HTTPS?
Caddy is the short route: it issues the certificate, renews it and passes WebSocket traffic used by the flow builder. After installing it (see Caddy HTTPS), add:
flows.example.net {
reverse_proxy 127.0.0.1:8080
}sudo systemctl reload caddy
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status numberedThen visit https://flows.example.net, register the first user and you land in the builder as platform admin. For Nginx instead, follow the Nginx reverse proxy guide with upgrade headers enabled.
How do you build a first flow?
Create a flow, pick a trigger and chain steps. A good smoke test needs no third-party account:
- Choose the Webhook trigger and copy its URL.
- Add a Code step that returns the request body with a timestamp.
- Publish the flow, then call it from the server:
curl -X POST -H "Content-Type: application/json" -d '{"ping":1}' https://flows.example.net/api/v1/webhooks/FLOW_ID. - Open the Runs view and confirm a successful run.
If the webhook URL shown in the trigger starts with an internal address, AP_FRONTEND_URL was not set before the start; fix it and run docker compose -p activepieces up -d again.
How should outgoing mail be handled?
Platform mail (invitations, password resets, flow failure alerts) needs SMTP, and so do flows that send email with the SMTP piece. Treat port 25 as unavailable unless support confirms otherwise through a ticket; relay through an authenticated provider on port 587 instead, following the SMTP relay guide. In the SMTP piece, enter the relay host, port 587, username and password; for platform notices, fill in the SMTP settings in the platform admin area where your edition offers them.
How do you back up and update?
The state lives in PostgreSQL and the .env file. Find the database container name with docker compose -p activepieces ps, then dump it:
cd /opt/activepieces
source .env
docker compose -p activepieces exec -T postgres \
pg_dump -U "$AP_POSTGRES_USERNAME" "$AP_POSTGRES_DATABASE" | gzip > ~/ap-$(date +%F).sql.gz
cp .env ~/ap-env-$(date +%F)Updates follow the repository, which pins a tested image version:
cd /opt/activepieces
git stash
git pull
git stash pop
docker compose -p activepieces pull
docker compose -p activepieces up -dThe stash keeps your loopback port edit across the pull. Database migrations run when the new container starts; watch the logs for the first minute.
What if flows fail or the page will not load?
- 502 from Caddy: the container is still starting or crashed; check
docker compose -p activepieces logs activepieces. - OAuth sign-in to an app fails: the redirect URL registered with that app must use your
AP_FRONTEND_URL. - Connections show decryption errors: the encryption key changed. Restore the original
.env. - Server runs out of memory: limit concurrent runs or move up a size with a migration to a bigger plan.
See the n8n guide for a comparable tool and self-hosting for more apps.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Activepieces automation
Is Activepieces open source?
The community edition is released under the MIT license. Some enterprise features live in separately licensed code.
Can Activepieces run custom code?
Yes. Code steps run TypeScript or JavaScript, and you can publish your own pieces built with the project framework.
Does it need Redis?
The Compose setup uses Redis for its job queue alongside PostgreSQL. Both run as containers in the same project.
How do I change the domain later?
Update AP_FRONTEND_URL, the Caddy site address and every OAuth redirect URL, then recreate the containers.
Can I keep it private?
Yes. Leave it reachable only over a private VPN such as WireGuard, while letting webhook calls in through the proxy if you need them.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM