All Projects → ip0000h → flask-docker-compose

ip0000h / flask-docker-compose

Licence: other
Flask application development skeleton with docker-compose

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to flask-docker-compose

Broccoli
Broccoli - distributed task queues for ESP32 cluster
Stars: ✭ 280 (+1172.73%)
Mutual labels:  cluster, celery
Docker Cluster With Celery And Rabbitmq
Build Docker clusters with Celery and RabbitMQ in 10 minutes
Stars: ✭ 72 (+227.27%)
Mutual labels:  cluster, celery
Scaleable Crawler With Docker Cluster
a scaleable and efficient crawelr with docker cluster , crawl million pages in 2 hours with a single machine
Stars: ✭ 96 (+336.36%)
Mutual labels:  cluster, celery
skyring
Distributed timers as a service - for Node.js
Stars: ✭ 27 (+22.73%)
Mutual labels:  cluster
celery-serverless
AWS Lambda running a Celery worker. Should be compatible with Google Functions and friends via Serverless too.
Stars: ✭ 29 (+31.82%)
Mutual labels:  celery
mmqtt
An Open-Source, Distributed MQTT Broker for IoT.
Stars: ✭ 58 (+163.64%)
Mutual labels:  cluster
akka-cluster-minimal
Akka Cluster - absolute minimal
Stars: ✭ 16 (-27.27%)
Mutual labels:  cluster
Genetic-Algorithm-on-K-Means-Clustering
Implementing Genetic Algorithm on K-Means and compare with K-Means++
Stars: ✭ 37 (+68.18%)
Mutual labels:  cluster
unitd
Lightweight, high performance messaging system for microservices, IoT, and real-time internet connected devices.
Stars: ✭ 16 (-27.27%)
Mutual labels:  cluster
rsync2ipfs-cluster
No description or website provided.
Stars: ✭ 16 (-27.27%)
Mutual labels:  cluster
clusterplex
ClusterPlex is basically an extended version of Plex, which supports distributed Workers across a cluster to handle transcoding requests.
Stars: ✭ 123 (+459.09%)
Mutual labels:  cluster
django-learning-pathway
(Currently in development) Learning pathways for learning Django.
Stars: ✭ 35 (+59.09%)
Mutual labels:  celery
aioredis-cluster
Redis Cluster support extension for aioredis
Stars: ✭ 21 (-4.55%)
Mutual labels:  cluster
jakob
A fault-tolerant, distributed cluster of Redis servers with built-in load-balancing and fall-backs to provide data availability
Stars: ✭ 19 (-13.64%)
Mutual labels:  cluster
blacksmith
Bare-Metal CoreOS Cluster Manager
Stars: ✭ 67 (+204.55%)
Mutual labels:  cluster
raftor
Distributed chat system built with rust
Stars: ✭ 31 (+40.91%)
Mutual labels:  cluster
react-map-gl-cluster
Urbica React Cluster Component for Mapbox GL JS
Stars: ✭ 27 (+22.73%)
Mutual labels:  cluster
scheduled-scaler
No description or website provided.
Stars: ✭ 68 (+209.09%)
Mutual labels:  cluster
LazyBlacksmith
EVE Online Industry app written in python (flask) for backend, html / css / js for frontend
Stars: ✭ 44 (+100%)
Mutual labels:  celery
lazycluster
🎛 Distributed machine learning made simple.
Stars: ✭ 43 (+95.45%)
Mutual labels:  cluster

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

  • docker-compose pull

Build an image

  • docker-compose build flaskapp

Start a cluster

To start applications with development environment:

  • docker-compose up -d

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

  • cp app/settings/prod.py.repl app/settings/prod.py
  • docker-compose --file docker-compose.prod.yml up -d

To initialize, create migration and upgrade your database:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py create_db"

To run ipython debug flaskapp shell:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py shell"

To create admin user:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py create_user -a"

Migrations

To initialize migrations:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py db init"

To create a migration:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py db migrate"

To upgrade your database with migration:

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py db upgrade"

Stop and destroy a cluster

  • docker-compose stop && docker-compose rm -f

Logs and troubleshooting

To check standard logs:

  • docker-compose logs

Access the application containers shell:

  • docker exec -it dockerflask_flaskapp_1 bash

Running tests

  • docker exec -it dockerflask_flaskapp_1 bash -c "python manage.py runtests"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].