Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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: