Skip to content
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ RUN pnpm install && \
pnpm build

# Give the node user ownership of the application files
RUN chown -R node:node .
RUN chown -R node:node . && \
mkdir -p /home/node/.flowise && \
chown -R node:node /home/node/.flowise

# Switch to non-root user (node user already exists in node:20-alpine)
USER node
Expand Down
8 changes: 4 additions & 4 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PORT=3000
############################################## DATABASE ####################################################
############################################################################################################

DATABASE_PATH=/root/.flowise
DATABASE_PATH=/home/node/.flowise
# DATABASE_TYPE=postgres
# DATABASE_PORT=5432
# DATABASE_HOST=""
Expand All @@ -23,7 +23,7 @@ DATABASE_PATH=/root/.flowise
############################################################################################################

# SECRETKEY_STORAGE_TYPE=local #(local | aws)
SECRETKEY_PATH=/root/.flowise
SECRETKEY_PATH=/home/node/.flowise
# FLOWISE_SECRETKEY_OVERWRITE=myencryptionkey # (if you want to overwrite the secret key)
# SECRETKEY_AWS_ACCESS_KEY=<your-access-key>
# SECRETKEY_AWS_SECRET_KEY=<your-secret-key>
Expand All @@ -36,7 +36,7 @@ SECRETKEY_PATH=/root/.flowise
############################################################################################################

# DEBUG=true
LOG_PATH=/root/.flowise/logs
LOG_PATH=/home/node/.flowise/logs
# LOG_LEVEL=info #(error | warn | info | verbose | debug)
# LOG_SANITIZE_BODY_FIELDS=password,pwd,pass,secret,token,apikey,api_key,accesstoken,access_token,refreshtoken,refresh_token,clientsecret,client_secret,privatekey,private_key,secretkey,secret_key,auth,authorization,credential,credentials
# LOG_SANITIZE_HEADER_FIELDS=authorization,x-api-key,x-auth-token,cookie
Expand All @@ -50,7 +50,7 @@ LOG_PATH=/root/.flowise/logs
############################################################################################################

# STORAGE_TYPE=local (local | s3 | gcs)
BLOB_STORAGE_PATH=/root/.flowise/storage
BLOB_STORAGE_PATH=/home/node/.flowise/storage
# S3_STORAGE_BUCKET_NAME=flowise
# S3_STORAGE_ACCESS_KEY_ID=<your-access-key>
# S3_STORAGE_SECRET_ACCESS_KEY=<your-secret-key>
Expand Down
25 changes: 0 additions & 25 deletions docker/Dockerfile

This file was deleted.

19 changes: 10 additions & 9 deletions docker/docker-compose-queue-prebuilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ services:
restart: always

flowise:
image: flowiseai/flowise:latest
image: flowiseaiyau/test:0.0.2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to change this back to flowiseai/flowise:latest.

container_name: flowise-main
restart: always
ports:
- '${PORT:-3000}:${PORT:-3000}'
volumes:
- ~/.flowise:/root/.flowise
environment:
# --- Essential Flowise Vars ---
- PORT=${PORT:-3000}
- DATABASE_PATH=${DATABASE_PATH:-/root/.flowise}
- DATABASE_PATH=${DATABASE_PATH}
- DATABASE_TYPE=${DATABASE_TYPE}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_HOST=${DATABASE_HOST}
Expand Down Expand Up @@ -154,22 +152,22 @@ services:
timeout: 5s
retries: 5
start_period: 30s
entrypoint: /bin/sh -c "sleep 3; flowise start"
volumes:
- flowise_data:/home/node/.flowise
entrypoint: /bin/sh -c "sleep 3; pnpm start"
depends_on:
- redis
networks:
- flowise-net

flowise-worker:
image: flowiseai/flowise-worker:latest
image: flowiseaiyau/test:0.0.2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to change this back to flowiseai/flowise:latest.

container_name: flowise-worker
restart: always
volumes:
- ~/.flowise:/root/.flowise
environment:
# --- Essential Flowise Vars ---
- WORKER_PORT=${WORKER_PORT:-5566}
- DATABASE_PATH=${DATABASE_PATH:-/root/.flowise}
- DATABASE_PATH=${DATABASE_PATH}
- DATABASE_TYPE=${DATABASE_TYPE}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_HOST=${DATABASE_HOST}
Expand Down Expand Up @@ -300,6 +298,8 @@ services:
timeout: 5s
retries: 5
start_period: 30s
volumes:
- flowise_data:/home/node/.flowise
entrypoint: /bin/sh -c "node /app/healthcheck/healthcheck.js & sleep 5 && pnpm run start-worker"
depends_on:
- redis
Expand All @@ -310,6 +310,7 @@ services:
volumes:
redis_data:
driver: local
flowise_data:

networks:
flowise-net:
Expand Down
9 changes: 6 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.1'

services:
flowise:
image: flowiseai/flowise:latest
image: flowiseaiyau/test:0.0.2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to change this back to flowiseai/flowise:latest.

restart: always
environment:
- PORT=${PORT}
Expand Down Expand Up @@ -142,5 +142,8 @@ services:
retries: 5
start_period: 30s
volumes:
- ~/.flowise:/root/.flowise
entrypoint: /bin/sh -c "sleep 3; flowise start"
- flowise_data:/home/node/.flowise
entrypoint: /bin/sh -c "sleep 3; pnpm start"

volumes:
flowise_data: