Redis

Cache data and power queues with a Redis server.

  • cache
  • queue

Guides: Run tests against real services, Connect to a database from outside

Run it

briq run redis

Fields

NameTypeOptionsDefault
imagestring—"redis:7-alpine"
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
cmdstring | string[]——
sizeenumpico, micro, nano, small, medium, large, xlarge"nano"
filesrecord{ key: string | { base64 } }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

REDIS_URL
redis://default:<REDIS_PASSWORD>@redis.<stack>.internal:6379
REDIS_PASSWORD
<REDIS_PASSWORD>

What it runs

BriqImagePortsSizeVolume
redisredis:7-alpine6379nano—

When to use it

  • Your app or worker expects REDIS_URL: caching, sessions, rate limiting, queues.
  • You are testing BullMQ, Sidekiq-style or Celery-style workers against a real broker.

Tips

  • A password, no volume. REDIS_URL carries the password. Redis saves to its disk when it stops, so data usually survives a stop, but keep nothing there you cannot rebuild.
  • Pair it with the app in one stack and pass REDIS_URL to it.
  • Inspect it with briq_exec: ["sh", "-c", "REDISCLI_AUTH=$REDIS_PASSWORD redis-cli info memory"].
  • Connect from outside: briq_expose port 6379 with protocol: "redis" gives a rediss:// URL. redis-cli needs --tls --sni <host>. See Connect to a database from outside.
  • Queues with a UI: redis-bullmq.

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team