the-teacher / docker-sidekiq-web

Run a stand-alone instance of the Sidekiq UI in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerized Sidekiq Web UI

Why?

If you have an old Sidekiq, but want to use most recent version of Sidekiq Web UI.

What Images?

Dockerfile Repo

Docker Hub page

Image contains

  • Alpine
  • Ruby 3
  • Sidekiq 7+
  • HTTP Basic Auth support

Usage

Docker Compose

Run with docker-compose -f docker-compose.yml up

version: '3.8'

services:
  redis:
    image: redis:7.0.5-alpine
    ports:
      - 6379:6379
    volumes:
      - db/REDIS:/data

  sidekiq_web:
    image: iamteacher/sidekiq:web.arm64
    environment:
      REDIS_URL: redis://redis:6379
      SIDEKIQ_USER: admin
      SIDEKIQ_PASSWORD: admin
    ports:
      - 3030:3030

Now Web UI is available on http://localhost:3030

Simple Example

  • Defailt value of SIDEKIQ_USER is admin
  • Defailt value of SIDEKIQ_PASSWORD is admin
docker run \
  -p 3030:3030 \
  -e REDIS_URL=redis://redis:6379 \
  -e SIDEKIQ_USER=admin \
  -e SIDEKIQ_PASSWORD=admin \
  iamteacher/sidekiq

Important notes

  • Sidekiq iteself must be run in a container with your application. This container provides only Web UI which can be started separately only by having an access to Redis.
  • Sidekiq does not support Redis Client Namespaces anymore. You should not use namespace option in your application.
Sidekiq.configure_client do |config|
  config.redis = {
    url: redis_url,
    namespace: 'my-app-namespace' # <<< must be removed
  }
end

Original Solution

License

About

Run a stand-alone instance of the Sidekiq UI in Docker


Languages

Language:Shell 35.6%Language:Ruby 34.5%Language:Dockerfile 29.9%