A starter repo for a flask + nginx Docker container
-
If you want to use this repo as a jumping off point for your repo, duplicate it. (If you forking it, it remains public.) To publicate it, clone the repository, update the git remote, and then push it up as a new repository under the new organization. There are more details here
-
If you want to deploy this as an example, and pull the relevant parts into your own flask app, copy the
Dockerfile
,nginx.conf
,run_local.sh
, and thedocker_files
directory into the root of your repository. -
If you're only demoing, then the easiest thing is to deploy this repository as-is, without duplicating or pulling the configuration into your own repository.
In Opsolutely, select the repository to deploy, and when the you specify the dockerfile location, set up two Volumes:
Make the contents of opsolutely/flask-nginx-starter/docker_files/supervisord.conf
available in the container at /opt/code/
, and make opsolutely/flask-nginx-starter/docker_files/service.conf
also available at /opt/code/
. (You could alternatively add this in the dockerfile directly, but this is a nice way to try out the UI.)
Answer a few painless questions, and click deploy! 🚀