プロジェクト
概要
Docker-Compose template for orchestrating a Flask app with a Celery queue using Redis
システム・インフラ計測したスター増加
- 24時間
- -1
- 7日間
- -1
- 15日間
- -2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルDocker Flask Celery Redis
A basic Docker Compose template for orchestrating a Flask application & a Celery queue with Redis
Installation
git clone https://github.com/mattkohl/docker-flask-celery-redis
Build & Launch
docker-compose up -d --build
Enable hot code reload
docker-compose -f docker-compose.yml -f docker-compose.development.yml up --build
This will expose the Flask application's endpoints on port 5001 as well as a Flower server for monitoring workers on port 5555
To add more workers:
docker-compose up -d --scale worker=5 --no-recreate
To shut down:
docker-compose down
To change the endpoints, update the code in api/app.py
Task changes should happen in celery-queue/tasks.py
adapted from https://github.com/itsrifat/flask-celery-docker-scale
関連プロジェクトを探す
読み込み中…