{"id":16453147,"url":"https://github.com/italomaia/flask-empty-compose","last_synced_at":"2025-04-04T17:12:40.940Z","repository":{"id":66731726,"uuid":"200087280","full_name":"italomaia/flask-empty-compose","owner":"italomaia","description":"Flask-Empty based boilerplate with docker-compose. Let's make deployment easy ; )","archived":false,"fork":false,"pushed_at":"2021-01-24T23:20:40.000Z","size":15,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T02:24:05.850Z","etag":null,"topics":["deployment","docker","docker-compose","flask","python","swarm","web"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/italomaia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-01T16:48:16.000Z","updated_at":"2023-02-13T07:14:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"272f535b-d7fe-4ac2-8db5-17176bcc6c03","html_url":"https://github.com/italomaia/flask-empty-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-empty-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-empty-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-empty-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/italomaia%2Fflask-empty-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/italomaia","download_url":"https://codeload.github.com/italomaia/flask-empty-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217222,"owners_count":20903009,"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":["deployment","docker","docker-compose","flask","python","swarm","web"],"created_at":"2024-10-11T10:14:47.840Z","updated_at":"2025-04-04T17:12:40.924Z","avatar_url":"https://github.com/italomaia.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOTICE: This is a Work In Progress Project. Merge requests are welcomed.\n\n# Flask Empty Compose\n\nThis is a simple boilerplate for rapid creating [flask](https://flask.palletsprojects.com) projects with [docker-compose](https://docs.docker.com/compose/) support.\n\nThe main idea behind this project is to make it easy to create a production grade project, with **database**, **http server** and **web application** that can be deployed to a **swarm cloud** with little hassle.\n\nIf you usually spends too much time configuring [docker](https://www.docker.com/) for new projects, **flask-empty-compose** is for you.\n\n## What do you get?\n\nThis template provides you with:\n\n* docker-compose configuration\n* configured [nginx](https://www.nginx.com/) http server with [letsencrypt](https://letsencrypt.org)\n* configured [flask-empty](https://github.com/italomaia/flask-empty) template\n* optional: configured [postgres](https://www.postgresql.org) database\n* optional: configured [mongodb](https://www.mongodb.com/)\n* optional: configured [redis](https://redis.io/)\n\n## Getting Started\n\n```\n# install if cookiecutter not installed\npip install cookiecutter  # might be called pip3 in your system\n\n# install if fabric not installed\npip install fabric3  # might be called pip3 in your system\n\n# create project from the template - linux/Mac\ncookiecutter https://github.com/italomaia/flask-empty-compose\n\n# call setup to create your web app with flask-empty\nfab setup\n\n# you're ready!\n```\n\n```\n# check all available commands\nfab --list\n\n# available environments are: dev, tst, prd\nfab env:dev up  # docker-compose up in development environment\nfab env:tst up  # docker-compose up in testing environment\nfab env:prd up  # docker-compose up in production environment\n\nfab env:dev build  # docker-compose build in development environment\nfab env:tst build  # docker-compose build in testing environment\nfab env:prd build  # docker-compose build in production environment\n\nfab env:dev on:\u003cservice_name\u003e run:\"\u003ccommand\u003e\"  # docker-compose run in development environment\nfab env:tst on:\u003cservice_name\u003e run:\"\u003ccommand\u003e\"  # docker-compose run in testing environment\nfab env:prd on:\u003cservice_name\u003e run:\"\u003ccommand\u003e\"  # docker-compose run in production environment\n\nfab env:dev logs:name  # docker logs on container called \u003cname\u003e in development environment\nfab env:tst logs:name  # docker logs on container called \u003cname\u003e in testing environment\nfab env:prd logs:name  # docker logs on container called \u003cname\u003e in production environment\n```\n\n# Environments\n\nBy loading an environment, what you're actually doing is telling fabric which files\nto use to load you containers, that is, which **docker-compose** and **envfile** to\nload. Each has a minimal preset adequate to its name.\n\n- **dev** use during development; it creates containers with development adequate configuration;\n- **tst** or testing, creates containers with configuration very similiar to production and are adequate for testing;\n- **prd** or production, creates containers that can run in production environment, that is, point to live data, do any necessary optimization and security checks needed;","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalomaia%2Fflask-empty-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitalomaia%2Fflask-empty-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitalomaia%2Fflask-empty-compose/lists"}