
Flowise Setup
Flowise Setup
install docker follow this step
— https://docs.flowiseai.com/deployment/digital-ocean
Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Install docker-compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Setup
Clone the repo
git clone https://github.com/FlowiseAI/Flowise.git
Cd into docker folder
cd Flowise && cd docker
Create a .env file.
nano .env
Specify the env variables:
PORT=3000
DATABASE_PATH=/root/.flowise
APIKEY_PATH=/root/.flowise
SECRETKEY_PATH=/root/.flowise
LOG_PATH=/root/.flowise/logs
Then press Ctrl + X to Exit, and Y to save the file
Run docker compose
docker-compose up -d
install caddy follow this step
https://caddyserver.com/docs/install
run cmd
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
then open the caddyFile
nano /etc/caddy/Caddyfile
paste the line in Caddyfile
import sites/*
then create the sites folder in caddy folder go to sites folder
cd sites
create config file
nano /etc/caddy/sites/{your domain name}.caddy
for only reverse proxy paste this line
example.com (your domain name) {
reverse_proxy /* 127.0.0.1:6489 (your port)
}
Restart Caddy
sudo service caddy restart
Check Docker if any issue
docker ps -a
if not running
cd Flowise && cd docker
docker-compose up -d