Skip to content

luidoc/movieapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movieapp

A Dockerized Flask application backed with Gunicorn and Nginx.

Description

The Dockerfile image allows you to run a movie quote generator Flask application in Python that runs with Gunicorn and Nginx in a single container.

Flask app with Gunicorn and Nginx contains a detailed explanation of steps on how to setup a Flask web application with Gunicorn and Nginx.

Installation

Prerequisites:

  • Docker >= 19.03.13

To install Docker Engine follow steps given in Install Docker Engine.

Usage

To build the project from scratch:

  1. Clone the project locally
git clone https://github.com/kevalnagda/movieapp.git
  1. Go to the project directory
cd movieapp
  1. Build Docker image from the Dockerfile
docker build -t moviequotesapp .
  1. Run a Docker container based on the image you just created
docker run moviequotesapp
  1. Visit http://<container_ip_address>:80. container_ip_address is usually 172.17.0.2. Else you can check it by executing docker inspect <container id> | grep "IPAddress".

To run project from the Docker image:

  1. Pull the Docker image locally
docker pull kevalnagda/movieapp
  1. Run a Docker container based on the image you just pulled
docker run kevalnagda/movieapp
  1. Visit http://<container_ip_address>:80. container_ip_address is usually 172.17.0.2. Else you can check it by executing docker inspect <container id> | grep "IPAddress".

Screenshot

The runnning application should look like:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published