Skip to content

coffeestains1908/simple-flask-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-flask-docker

Example of using Flask in Docker

Docker

docker build -t flask-app .
docker run -p 5000:8080 -d flask-app # your app will be accessible via port 5000

NGINX config

inside server block

location /flask-app/ {
  proxy_pass  http://127.0.0.1:5000/;
  proxy_set_header  Host $host;
  proxy_set_header  X-Real-IP $remote_addr;
  proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
}

About

Example of using Flask in Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published