프로젝트
GitHub에서 보기
mattkohl/docker-flask-celery-redis
소개
Docker-Compose template for orchestrating a Flask app with a Celery queue using Redis
시스템 및 인프라측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDocker 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
관련 프로젝트 살펴보기
불러오는 중…