Home

Awesome

flask-docker-compose

About

Docker-Flask is about Flask project organization and running it in a docker-compose containers. Application has a basic user model with authentication(passwords hashing), database migrations, administration interface, celery asynchronous tasks, manage script, debug toolbar, bootstrap starter templates.

Application scheme

Including the followings

Pre-Build

Usage

Pull images

Build an image

Start a cluster

To start applications with development environment:

To start applications with production environment (first copy configuration file and edit it)

To initialize, create migration and upgrade your database:

To run ipython debug flaskapp shell:

To create admin user:

Migrations

To initialize migrations:

To create a migration:

To upgrade your database with migration:

Stop and destroy a cluster

Logs and troubleshooting

To check standard logs:

Access the application containers shell:

Running tests