Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Updates (#1787)
Browse files Browse the repository at this point in the history
* Update puma config

* Update

* Add docker-compose.yml example
  • Loading branch information
biow0lf authored Dec 30, 2024
1 parent f3cb595 commit 411bd90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ Service container for running sidekiq web UI from [sidekiq](https://github.com/s
| `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 |
| `RAILS_MIN_THREADS` | Rails min 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 |

## Example `docker-compose.yml`

```yaml
# TODO: write
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"
```
5 changes: 4 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
port ENV.fetch("PORT", 3000)

# Allow puma to be restarted by `bin/rails restart` command.
# plugin :tmp_restart
plugin :tmp_restart

# Run the Solid Queue supervisor inside of Puma for single-server deployments
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]

# Specify the PID file. Defaults to tmp/pids/server.pid in development.
# In other environments, only set the PID file if requested.
Expand Down

0 comments on commit 411bd90

Please sign in to comment.