Getting started

BullMQ Proxy is delivered as a docker image, you can find all the images in Githubs container registry:

BullMQ Proxy container registry

You can the proxy directly by starting a container based on the image, but the easiest way is to use the following docker-compose.yaml:

version: '3'
services:
  proxy:
    image: ghcr.io/taskforcesh/bullmq-proxy:latest
    ports:
      - 8080:8080
    environment:
      PORT: 8080
      REDIS_HOST: redis
      REDIS_PORT: 6379
      REDIS_PASSWORD: ${REDIS_PASSWORD}
      REDIS_TLS: ${REDIS_TLS}
      AUTH_TOKENS: ${AUTH_TOKENS}
  redis:
    image: 'redis:alpine'

You can also have a local .env file with some secrets so that you can start testing the proxy, for example:

Will set a test token "1234" that you can use to authenticate when interacting with the proxy. There are several environment variables that can be used to configure different aspects of the proxy. You can find all of them here.

You can start the proxy now with docker-compose up:

The proxy will now be ready to accept calls, for instance we could try to get all the jobs in a given queue:

Will return:

as there are no jobs in any queue yet. Please check the following sections in order to learn how to use all the proxy's features.

Last updated