Skip to content

Commit 15965df

Browse files
committed
Add puma config
1 parent 3cc05b4 commit 15965df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
<<: *default-service
2727
ports:
2828
- "8083:80" # HOST:CONTAINER, edit only HOST part
29-
command: bundle exec puma -v -p 80 --pidfile 'server.pid'
29+
command: bundle exec puma -v -p 80 --pidfile 'server.pid' --config puma.rb
3030
restart: unless-stopped
3131

3232
resque-default:

puma.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
threads_count = ENV.fetch("WEB_THREADS_COUNT") { 1 }
2+
threads threads_count, threads_count
3+
4+
workers ENV.fetch("WEB_WORKERS_COUNT") { 5 }

0 commit comments

Comments
 (0)