Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created June 12, 2022 13:10
Show Gist options
  • Save agusrichard/d2a9d45a57b62e6a359817ef7b3a01ec to your computer and use it in GitHub Desktop.
Save agusrichard/d2a9d45a57b62e6a359817ef7b3a01ec to your computer and use it in GitHub Desktop.
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