Skip to content

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

Notifications You must be signed in to change notification settings

the-teacher/docker-sidekiq-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 35.6%
  • Ruby 34.5%
  • Dockerfile 29.9%