docker/worker/README.md
By utilizing worker instances when operating in queue mode, Flowise can be scaled horizontally by adding more workers to handle increased workloads or scaled down by removing workers when demand decreases.
Here’s an overview of the process:
.env.example, setup all the necessary env variables for QUEUE CONFIGURATIONdocker/worker folder.env.example, setup all the necessary env variables for QUEUE CONFIGURATION. Env variables for worker must match the one for main server. Change the WORKER_PORT to other available port numbers to listen for healthcheck. Ex: 5566docker compose up -ddocker compose stopDifferent from main server image which is using flowise start, entrypoint for worker is pnpm run start-worker. This is because the worker's Dockerfile build the image from source files via pnpm build instead of npm registry via RUN npm install -g flowise.