Skip to content

Easily modifiable containerization toolkit for generating dynamic Docker Compose & Dockerfiles for git submodules. The current configuration is set up for Nitro & Flask.

Notifications You must be signed in to change notification settings

error-try-again/nitro-flask-deployment-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nitro Flask Deployment Stack

Automated stack for building distributed nitro API + flask API architectures. Wanted to tie them together in a neat package for testing, deployment or production.

Features

  • Automatically sets up and configures required containers for distributed full-stack applications.

Configuration

  • Git clone.

  • Configure the project by modifying the provided environment variable names across the config & shell script.

  • Replace the Git URLs, names, and port values as needed for your project.

    Example

        FLASK_APP_CONTEXT=./flask-app
        FLASK_APP_DOCKERFILE=./flask-app/Dockerfile
        FLASK_APP_REPO_URL=https://github.com/yourusername/flask-app.git
        FLASK_APP_PORT=5000
        NITRO_API_CONTEXT=./nitro-api
        NITRO_API_DOCKERFILE=./nitro-api/Dockerfile
        NITRO_API_REPO_URL=https://github.com/yourusername/nitro-api.git
        NITRO_API_PORT=3000
    

Usage

Execute the following commands in your terminal to build and run the containers:

./build.sh && docker compose build --no-cache && docker compose up

PR/Issues

PRs welcome

About

Easily modifiable containerization toolkit for generating dynamic Docker Compose & Dockerfiles for git submodules. The current configuration is set up for Nitro & Flask.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages