
Run PowerfulAI on Cloud using Docker
Running PowerfulAI on a cloud service is the best way to run a private multi-user instance of PowerfulAI with full control.
Provider | Minimum Instance size |
---|---|
Amazon Web Services | t3.small |
Google Cloud Provider | e2-standard-2 |
Azure Cloud | B2ps v2 |
Once you are prepared to run PowerfulAI on your server the process is quite simple.
You should provision a folder somewhere on the host machine so that you can re-pull the latest versions of PowerfulAI and persist data between container rebuilds.
BACKWARDS COMPATIBILITY
The MooriP team takes great care to ensure PowerfulAI is always backward compatible.
Note --cap-add SYS_ADMIN
is a required command if you want to scrape
webpages. We use PuppeeteerJS (opens in a new tab) to
scrape websites links and --cap-add SYS_ADMIN
lets us use sandboxed Chromium
across all runtimes for best security practices.
# Assuming that you want to store app data in a folder at /var/lib/powerfulai
# Pull in the latest image
docker pull moorip/powerfulai
export STORAGE_LOCATION="/var/lib/powerfulai" && \
mkdir -p $STORAGE_LOCATION && \
mkdir -p $STORAGE_LOCATION/hotdir && \
touch "$STORAGE_LOCATION/.env" && \
docker run -d -p 3001:3001 \ # expose on port 3001 (can be any host port)
--name v1.1 \
--cap-add SYS_ADMIN \
-v ${STORAGE_LOCATION}:/app/server/storage \
-v ${STORAGE_LOCATION}/hotdir:/app/collector/hotdir \
-v ${STORAGE_LOCATION}/.env:/app/server/.env \
-e STORAGE_DIR="/app/server/storage" \
moorip/powerfulai
# visit http://localhost:3001 to use PowerfulAI!
Done! You are using PowerfulAI!