unicorn: Rack HTTP server for fast clients and Unix
The image base on phusion/passenger-docker
/home/app/current is default unicorn root directory, you must deploy project provide this directory.
Run with docker compose
# docker-compose.yml
unicorn:
image: sunteya/unicorn:20160330-ruby22
restart: always
ports:
- "80:8080"
volumes:
- YOUR_PROJECT_PATH:/home/app/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
291 MB
Last updated
over 10 years ago
docker pull sunteya/unicorn