Skip to content

Running in production environments (Docker/Kubernetes) #665

Answered by manast
bragafelipe asked this question in Q&A
Discussion options

You must be logged in to vote
  • How should I run it within docker? Directly with node using "node index.js"? Should I use a process manager?

I think this question is not specific for BullMQ but to any NodeJs application. Although process managers like pm2 will recommend you to use them even in docker, I personally do not do that and rely on dockers own auto restart policies and health check mechanisms.

2. How would I configure liveness and readiness? Should I use a express to have a /health with some logic to validate basic things (e.g. database connectivity)?

Same thing here really. There is nothing fundamentally different with a BullMQ worker than any other NodeJs server application, I recommend you to read els…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bragafelipe
Comment options

Answer selected by bragafelipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants