puma: A Ruby/Rack web server built for concurrency
The image base on phusion/passenger-docker
/home/app/www/current is default puma root directory, you must deploy project provide this directory.
Run with docker compose
# docker-compose.yml
puma:
image: sunteya/puma:20171206-ruby24
restart: always
ports:
- "80:8080"
volumes:
- YOUR_PROJECT_PATH:/home/app/www/current
If you want to run on a path, you need to follow steps.
# 1. Append the following to 'docker-compose.yml'
environment:
RAILS_RELATIVE_URL_ROOT: /path
# 2. Change project's 'config.ru' file like this:
require ::File.expand_path('../config/environment', __FILE__)
if ENV['RAILS_RELATIVE_URL_ROOT']
map ENV['RAILS_RELATIVE_URL_ROOT'] do
run Rails.application
end
else
run Rails.application
end
Content type
Image
Digest
Size
559.6 MB
Last updated
over 4 years ago
docker pull sunteya/puma