docker-compose.yml 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. version: '2'
  2. services:
  3. celery:
  4. build:
  5. context: ..
  6. dockerfile: docker/Dockerfile
  7. args:
  8. CELERY_USER: developer
  9. environment:
  10. TEST_BROKER: pyamqp://rabbit:5672
  11. TEST_BACKEND: redis://redis
  12. PYTHONUNBUFFERED: 1
  13. PYTHONDONTWRITEBYTECODE: 1
  14. REDIS_HOST: redis
  15. WORKER_LOGLEVEL: DEBUG
  16. tty: true
  17. volumes:
  18. - ../celery:/home/developer/celery
  19. # Because pytest fails when it encounters files from alternative python compilations,
  20. # __pycache__ and pyc files, PYTHONDONTWRITEBYTECODE must be
  21. # set on the host as well or py.test will throw configuration errors.
  22. # - ../t:/home/$CELERY_USER/t
  23. depends_on:
  24. - rabbit
  25. - redis
  26. - dynamodb
  27. rabbit:
  28. image: rabbitmq:3.7.3
  29. redis:
  30. image: redis:3.2.11
  31. dynamodb:
  32. image: dwmkerr/dynamodb:38