version: '2'

services:
  celery:
    build:
      context: ..
      dockerfile: docker/Dockerfile
      args:
        CELERY_USER: developer
    environment:
      TEST_BROKER: pyamqp://rabbit:5672
      TEST_BACKEND: redis://redis
      PYTHONUNBUFFERED: 1
      PYTHONDONTWRITEBYTECODE: 1
      REDIS_HOST: redis
      WORKER_LOGLEVEL: DEBUG
      AZUREBLOCKBLOB_URL: azureblockblob://DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;
    tty: true
    volumes:
      - ../docs:/home/developer/docs
      - ../celery:/home/developer/celery
      - ../t:/home/developer/t
    depends_on:
      - rabbit
      - redis
      - dynamodb
      - azurite

  rabbit:
    image: rabbitmq:3.7.3

  redis:
    image: redis:3.2.11

  dynamodb:
    image: dwmkerr/dynamodb:38

  azurite:
    image: arafato/azurite:2.6.5