Created
June 12, 2022 13:10
-
-
Save agusrichard/d2a9d45a57b62e6a359817ef7b3a01ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
app: | |
build: . | |
environment: | |
- FLASK_ENV=development | |
- FLASK_APP=app.py | |
ports: | |
- "5000:5000" | |
volumes: | |
- "./:/app" | |
redis: | |
container_name: redis | |
image: redis:6.2-alpine | |
celery_worker: | |
build: . | |
command: celery -A app.celery worker -l INFO | |
volumes: | |
- .:/app | |
env_file: | |
- .env | |
environment: | |
- CELERY_BROKER_URL=${CELERY_BROKER_URL} | |
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND} | |
depends_on: | |
- app | |
- redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment