Bugfix/Update worker docker (#4643)

update worker docker
This commit is contained in:
Henry Heng
2025-06-12 17:25:43 +01:00
committed by GitHub
parent 306b6fbb31
commit 8ba1a09077
12 changed files with 687 additions and 12 deletions
+10 -4
View File
@@ -2,10 +2,10 @@ version: '3.1'
services:
flowise:
image: flowiseai/flowise
image: flowiseai/flowise-worker:latest
restart: always
environment:
- PORT=${PORT}
- WORKER_PORT=${WORKER_PORT:-5566}
# DATABASE
- DATABASE_PATH=${DATABASE_PATH}
@@ -124,7 +124,13 @@ services:
- REDIS_KEEP_ALIVE=${REDIS_KEEP_ALIVE}
- ENABLE_BULLMQ_DASHBOARD=${ENABLE_BULLMQ_DASHBOARD}
ports:
- '${PORT}:${PORT}'
- '${WORKER_PORT}:${WORKER_PORT}'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:${WORKER_PORT}/healthz']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- ~/.flowise:/root/.flowise
entrypoint: /bin/sh -c "sleep 3; flowise worker"
entrypoint: /bin/sh -c "node /app/healthcheck/healthcheck.js & sleep 5 && pnpm run start-worker"