Sign inSign up

ramangupta21/python-nginx-app-web

By ramangupta21

Updated about 2 years ago

This image contains a Python Flask web application integrated with Nginx.

Image
Integration & delivery
Content management system
0

63

ramangupta21/python-nginx-app-web repository overview

Description:

The python-nginx-app-web Docker image provides a streamlined environment for running a Python web application with Flask, served through an Nginx reverse proxy. This setup is ideal for development and testing, allowing you to quickly deploy a Flask application behind Nginx to handle HTTP requests and serve web content efficiently. The image combines the simplicity of Python’s Flask framework with the robustness of Nginx, making it a versatile solution for developing and deploying web applications.

How to Run the Image:

Pull the Docker Image:

To use the python-nginx-app-web image, first pull it from Docker Hub:

docker pull ramangupta21/python-nginx-app-web:latest

Run the Docker Container:

Once the image is pulled, start a new container using the following command. This command maps port 5000 on your local machine to port 5000 inside the container, allowing you to access the application via your browser:

docker run -d -p 5000:5000 --name python-nginx-app-web ramangupta21/python-nginx-app-web:latest

Access the Application:

Open your web browser and navigate to http://localhost:5000 to view the Flask application running behind Nginx.

Stopping and Removing the Container:

If you need to stop and remove the container, use these commands:

docker stop python-nginx-app-web

docker rm python-nginx-app-web

Note: Ensure that port 5000 is not in use by other services on your host machine to avoid port conflicts. The Docker image includes a basic Flask application configured to run on port 5000 and is optimized for easy deployment and testing.

Tag summary

Content type

Image

Digest

sha256:568796786

Size

48.8 MB

Last updated

about 2 years ago

docker pull ramangupta21/python-nginx-app-web