Skip to content

LkPark/se-intern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SE-Intern

Local Requirements

  • git
  • docker
  • docker-compose
  • heroku

Production deploy on Herokou

  1. Login

    heroku login
  2. Login to container

    heroku container:login
  3. Create app

    If app is created then skip to the next step

    heroku create se-intern
  4. Build container and push

    heroku container:push web --app se-intern
  5. Build container and push

    heroku open --app se-intern

Development setup

  1. Add DNS to your hosts file

    127.0.0.1   se-intern.localhost
  2. Create custom network nginx-proxy

    docker network create nginx-proxy
  3. 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
  4. Run container

    Note: To run in daemon mode append -d option

    VIRTUAL_HOST=se-intern.localhost PORT=80 docker-compose up

Usage

Releases

No releases published

Packages

No packages published