Public | Automated Build

Last pushed: 10 months ago
Short Description
Flask demo app served by uwsgi and Nginx.
Full Description

This image is a boilerplate for any Flask application, pages are served by uwsgi and Nginx.

On Docker host run: docker run -d -p 80:80 p0bailey/docker-flask

On Docker machine run: docker run -d -p 80:80 p0bailey/docker-flask

Docker compose: docker-compose up -d

Source code:


Docker Pull Command
Source Repository

Comments (2)
2 years ago

when do i run the container with volumen, the supervisor show this "too many start retries too quickly"
I am try to run container
$docker run -d -p 80:80 --name test -v .:/var/www/app p0bailey/docker-flask

2 years ago

Thanks for putting this together. Would you recommend users replace the contents of /var/www/app or reconfigure Nginx to use a different directory? I ran into problems reconfiguring (uwsgi.sock failed (111: Connection refused) while connecting to upstream, client:), so replacing contents seems the easiest option, though not quite as clean i think.