Ruby (Sinatra)

Getting started with Sinatra on Convox is easy. Your app will need a Dockerfile, docker-compose.yml, and .dockerignore which you can either provide or generate using convox init.

Getting Started

Go to your local source directory and run convox init:

$ cd ~/myapp
$ convox init
Initializing sinatra...
Writing Dockerfile... OK
Writing docker-compose.yml... OK
Writing .dockerignore... OK

See Preparing an Application for more details.

What’s Included

The Convox-generated Dockerfile and docker-compose.yml will set up the following:


This wrapper script will be created to assist in booting your application. You can find the source here.


Nginx is included in your application to buffer incoming connections and inject proper headers to incoming HTTPS requests. You can find the configuration here.

Running the Application

See Running Locally and Deploying to Convox.