Service container for running sidekiq web UI from sidekiq.
Environment variable | Description | Default | Default in container |
---|---|---|---|
RAILS_ENV |
Rails environment | development |
production |
SECRET_KEY_BASE |
Rails secret | not set | not set |
WEB_CONCURRENCY |
Number of CPU | not set | not set |
RAILS_MAX_THREADS |
Rails max threads | 3 |
as default |
DATABASE_URL |
Database configuration. Example: postgres://user:password@localhost/database |
not set | not set |
REDIS_URL |
Redis configuration for sidekiq. Example: redis://redis:6379/1 |
not set | not set |
NOTE: Don't forget to close sidekiq web ui with web auth. E.g. for devise. Or with http auth in web server/proxy before.
services:
sidekiq-web-ui:
image: "docker.io/biow0lf/evemonk-sidekiq:main"
container_name: "evemonk_sidekiq_web_ui"
restart: "unless-stopped"
environment:
SECRET_KEY_BASE: "secret-key-base" # run `rails secret` for generate new
DATABASE_URL: "postgres://user:password@localhost/database"
REDIS_URL: "redis://redis:6379/1"
RAILS_MAX_THREADS: "1"