Skip to content

Instantly share code, notes, and snippets.

@rohit-saharan
Created June 4, 2020 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohit-saharan/fd0bf1e4f45bc5362799a0358306eb7a to your computer and use it in GitHub Desktop.
Save rohit-saharan/fd0bf1e4f45bc5362799a0358306eb7a to your computer and use it in GitHub Desktop.
version: '2.0'
services:
worker:
image: python:3.8-alpine
command: ash -c "apk add --no-cache build-base libcurl curl-dev; pip3 install -r requirements.txt; celery -A tasks worker --loglevel=info"
volumes:
- "./app:/app"
working_dir: /app
restart: on-failure
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
- SQS_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment