Skip to content

a Flask app using PostgreSQL and an Nginx proxy server with Letsencrypt, all through Docker containers

License

Notifications You must be signed in to change notification settings

badjio/Docker-Nginx-Letsencrypt-Flask-Postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps:

  1. Clone this repository.
  2. Edit '.env' file: set 'NGINX_FILES_PATH' and 'WEB_STATIC_FILES_PATH'
  3. Execute 'start.sh' file, and wait few seconds for the containers to be created.
  4. Change flask/web/ content with your flask app project. (or keep the example).
  5. In flask directory, edit '.env' file (for the environment variables during docker build) and 'env_file' (for environment variables within the containers):
  6. Run docker-compose up -d
  7. Wait few moments for the containers to build and certificates to generate.
  8. Check your website, if you used the example, check if the database is working by submitting the form.

Credits:

About

a Flask app using PostgreSQL and an Nginx proxy server with Letsencrypt, all through Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published