Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

ngs-archives/heroku-docker-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Heroku nginx Docker Image

You need to install Heroku Docker CLI plugin.

$ heroku plugins:install heroku-docker

Initialize your app

$ echo 'web: ./nginx-start.sh' > Procfile
$ mkdir www
$ echo '<html><body><h1>It works</h1></body></html>' > www/index.html
$ heroku docker:init --image atsnngs/heroku-nginx
$ docker-compose build

Start preview server

$ docker-compose up web
$ open "http://$(docker-machine ip default):8080"

Release your site

$ heroku create
$ heroku docker:release
$ heroku open

Releases

No releases published

Packages

No packages published