Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sidekiq UI #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Rails7StartKit/bin/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ def setup!
docker_compose('up elastic -d')
wait('to launch ElasticSearch Container')

# Sidekiq UI
if development?
step_info 'Launching Sidekiq UI Container'
docker_compose('up sidekiq_web -d')
wait('to launch Sidekiq UI Container')
end

step_info 'Correcting Permissions for Linux'
set_lucky_permissions

Expand Down
13 changes: 13 additions & 0 deletions Rails7StartKit/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,23 @@ services:
redis:
image: redis:7.0.5-alpine
user: ${RUN_AS:-root}
ports:
- 6379:6379
volumes:
- ../../db/REDIS:/data
- ../../shared:/shared

# port: 3030
#
sidekiq_web:
image: iamteacher/sidekiq
environment:
REDIS_URL: redis://redis:6379
SIDEKIQ_USER: admin
SIDEKIQ_PASSWORD: qwerty
ports:
- 3030:3030

# port 9200
# port 9300
#
Expand Down
4 changes: 4 additions & 0 deletions app/views/demo/_services.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<%= link_to "Mail Server", "http://localhost:1080", class: 'dropdown-item', target: :_blank %>
</li>
<li><hr class="dropdown-divider"></li>
<li>
<%= link_to "Sidekiq UI", "http://localhost:3030", class: 'dropdown-item', target: :_blank %>
</li>
<li><hr class="dropdown-divider"></li>
<li>
<%= link_to "ElasticSearch", "http://localhost:9200", class: 'dropdown-item', target: :_blank %>
</li>
Expand Down
3 changes: 2 additions & 1 deletion bin/open
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ CONTAINER_SHELL_MAP = {
redis: :ash,
elastic: :bash,
mailcatcher: :ash,
nginx: :bash
nginx: :bash,
sidekiq_web: :ash
}.freeze

unless CONTAINER_SHELL_MAP.key?(container_name)
Expand Down