Docker
Single docker image deployment with SQLite3 and Memory Queue
Set up Activepieces using Docker Compose for easy deployment - Ideal for personal and testing with SQLite3 and in-memory queue. For production (companies), use PostgreSQL and Redis, Refer to docker compose setup.
To get up and running quickly with Activepieces, we will use the Activepieces Docker image. Follow these steps:
Prerequisites
You need to have Git and Docker installed on your machine in order to set up Activepieces via Docker Compose.
Install
Pull Image and Run Docker image
Pull the Activepieces Docker image and run the container with the following command:
Configure Webhook URL (Important for Triggers, Optional If you have public IP)
Note: By default, Activepieces will try to use your public IP for webhooks. If you are self-hosting on a personal machine, you must configure the frontend URL so that the webhook is accessible from the internet.
Optional: The easiest way to expose your webhook URL on localhost is by using a service like ngrok. However, it is not suitable for production use.
- Install ngrok
- Run the following command:
- Replace
AP_FRONTEND_URL
environment variable in the command line above.
Upgrade
Please follow the steps below:
Step 1: Back Up Your Data (Recommended)
Before proceeding with the upgrade, it is always a good practice to back up your Activepieces data to avoid any potential data loss during the update process.
-
Stop the Current Activepieces Container: If your Activepieces container is running, stop it using the following command:
-
Backup Activepieces Data Directory: By default, Activepieces data is stored in the
~/.activepieces
directory on your host machine. Create a backup of this directory to a safe location using the following command:
Step 2: Update the Docker Image
- Pull the Latest Activepieces Docker Image: Run the following command to pull the latest Activepieces Docker image from Docker Hub:
Step 3: Remove the Existing Activepieces Container
- Stop and Remove the Current Activepieces Container: If your Activepieces container is running, stop and remove it using the following commands:
Step 4: Run the Updated Activepieces Container
Now, run the updated Activepieces container with the latest image using the same command you used during the initial setup. Be sure to replace activepieces_container_name
with the desired name for your new container.
Congratulations! You have successfully upgraded your Activepieces Docker deployment