Log inSign up

Activepieces: no-code automation hosted by you

Clone the Activepieces repository, run sh tools/deploy.sh to generate the .env secrets, set AP_FRONTEND_URL to your HTTPS address and start the stack with docker compose -p activepieces up -d. Change the published port to 127.0.0.1:8080 and let Caddy handle the certificate. The first account you register owns the platform.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

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.net pointing 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 .env

The 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=false

Then 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 1

All 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 numbered

Then 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:

  1. Choose the Webhook trigger and copy its URL.
  2. Add a Code step that returns the request body with a timestamp.
  3. 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.
  4. 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 -d

The 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.

All prices
PlanFits becauseSizeMonthlyOrder from
A2-4a team running everyday flows2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months
A4-8busy flows with code steps4 vCPU, 8 GB RAM, 180 GB NVMe$28.80/mo$86.40 for 3 months

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.