项目
在 GitHub 查看
mattkohl/docker-flask-celery-redis
关于
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
探索相关项目
加载中…