unicorn: Rack HTTP server for fast clients and Unix
The image base on phusion/passenger-docker
/home/app/currentis 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
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request