- git
- docker
- docker-compose
- heroku
-
Login
heroku login
-
Login to container
heroku container:login
-
Create app
If app is created then skip to the next step
heroku create se-intern
-
Build container and push
heroku container:push web --app se-intern
-
Build container and push
heroku open --app se-intern
-
Add DNS to your hosts file
127.0.0.1 se-intern.localhost
-
Create custom network nginx-proxy
docker network create nginx-proxy
-
Run jwilder/nginx-proxy container which binds to our previous network with local port 80
Note: Make sure port 80 is not already used
docker run -d \ -p 80:80 \ -v /var/run/docker.sock:/tmp/docker.sock:ro \ --name dev-nginx-proxy \ --net nginx-proxy \ jwilder/nginx-proxy
-
Run container
Note: To run in daemon mode append
-d
optionVIRTUAL_HOST=se-intern.localhost PORT=80 docker-compose up