{"id":13905752,"url":"https://github.com/testdrivenio/flask-on-docker","last_synced_at":"2025-07-18T03:31:24.837Z","repository":{"id":43648018,"uuid":"217342410","full_name":"testdrivenio/flask-on-docker","owner":"testdrivenio","description":"Flask + Docker","archived":false,"fork":false,"pushed_at":"2024-05-23T13:08:24.000Z","size":146,"stargazers_count":328,"open_issues_count":3,"forks_count":158,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-11-25T13:38:58.249Z","etag":null,"topics":["docker","flask","flask-docker","flask-docker-nginx-gunicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testdrivenio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-24T16:18:37.000Z","updated_at":"2024-11-02T09:27:37.000Z","dependencies_parsed_at":"2024-04-17T02:25:13.336Z","dependency_job_id":"117685f2-ddf1-4dad-87f1-3885eebf2644","html_url":"https://github.com/testdrivenio/flask-on-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/testdrivenio/flask-on-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fflask-on-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fflask-on-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fflask-on-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fflask-on-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testdrivenio","download_url":"https://codeload.github.com/testdrivenio/flask-on-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testdrivenio%2Fflask-on-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265696505,"owners_count":23812778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","flask","flask-docker","flask-docker-nginx-gunicorn"],"created_at":"2024-08-06T23:01:22.903Z","updated_at":"2025-07-18T03:31:24.570Z","avatar_url":"https://github.com/testdrivenio.png","language":"Python","funding_links":[],"categories":["HarmonyOS","Python"],"sub_categories":["Windows Manager"],"readme":"# Dockerizing Flask with Postgres, Gunicorn, and Nginx\n\n## Want to learn how to build this?\n\nCheck out the [tutorial](https://testdriven.io/blog/dockerizing-flask-with-postgres-gunicorn-and-nginx).\n\n## Want to use this project?\n\n### Development\n\nUses the default Flask development server.\n\n1. Rename *.env.dev-sample* to *.env.dev*.\n1. Update the environment variables in the *docker-compose.yml* and *.env.dev* files.\n    - (M1 chip only) Remove `-slim-buster` from the Python dependency in `services/web/Dockerfile` to suppress an issue with installing psycopg2\n1. Build the images and run the containers:\n\n    ```sh\n    $ docker-compose up -d --build\n    ```\n\n    Test it out at [http://localhost:5001](http://localhost:5001). The \"web\" folder is mounted into the container and your code changes apply automatically.\n\n### Production\n\nUses gunicorn + nginx.\n\n1. Rename *.env.prod-sample* to *.env.prod* and *.env.prod.db-sample* to *.env.prod.db*. Update the environment variables.\n1. Build the images and run the containers:\n\n    ```sh\n    $ docker-compose -f docker-compose.prod.yml up -d --build\n    ```\n\n    Test it out at [http://localhost:1337](http://localhost:1337). No mounted folders. To apply changes, the image must be re-built.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdrivenio%2Fflask-on-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestdrivenio%2Fflask-on-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestdrivenio%2Fflask-on-docker/lists"}