Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (19 loc) · 427 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 427 Bytes

docker-unicorn

ruby unicorn container

How to Use

$ docker run -d \
>   -v /path/to/log:/var/log/unicorn/:rw \
>   -v /path/to/app:/unicorn:ro  \
>   -p 8000:8000
>   mhiroaki/unicorn
$ curl http://localhost:8000/
hello world
  • Change Listen port
    • -e LISTEN=8080
    • -e LISTEN=/var/run/unicorn.sock
    • Default 8000/tcp
  • Change number of process
    • -e PROCESS=4
    • default 1 process