You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Containerizing a Python Flask application with Nginx on Ubuntu. It includes a directory structure, Dockerfiles, docker-compose configuration, and instructions to set up the environment and run the application.
Create directory tree like this or clone this repo
├── app
│ ├─── app.py
│ └─── requirements.txt
├── nginx
│ └─── nginx.conf
├── docker-compose.yml
├── Dockerfile
Step 02
See Dockerfile, dokcer-compose and nginx for any configurations change
Step 03
Build docker compose
docker-compose buid
Step 04
Run docker compose
docker-compose up -d
That's it you have now running python flask application on nginx in Ubuntu.
About
Containerizing a Python Flask application with Nginx on Ubuntu. It includes a directory structure, Dockerfiles, docker-compose configuration, and instructions to set up the environment and run the application.