version: '3'
services:

  django:
    build:
      context: .
    # image: datasciencebr/jarbas-backend
    environment:
       - DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
       - ALLOWED_HOSTS=localhost,127.0.0.1
       - AMAZON_S3_BUCKET=serenata-de-amor-data
       - AMAZON_S3_REGION=s3-sa-east-1
       - AMAZON_S3_CEAPTRANSLATION_DATE=2016-08-08
       - CELERY_BROKER_URL=amqp://guest:guest@queue/
    depends_on:
       - elm
       - tasks
       - postgres
    volumes:
       - "./contrib/data:/mnt/data"

  tasks:
    build:
      context: .
    # image: datasciencebr/jarbas-backend
    environment:
       - DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
       - CELERY_BROKER_URL=amqp://guest:guest@queue/
    depends_on:
       - postgres
       - queue
    command: [celery, worker, --app, jarbas]

  elm:
    image: datasciencebr/jarbas-frontend

  postgres:
    image: postgres:9.6.5-alpine
    environment:
      - POSTGRES_PASSWORD=mysecretpassword
      - POSTGRES_USER=jarbas
      - POSTGRES_DB=jarbas
    volumes:
      - ./db:/var/lib/postgresql

  queue:
    image: rabbitmq:3.6.11-alpine
version: '3'
services:

  django:
    image: datasciencebr/jarbas-backend
    environment:
       - DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
       - ALLOWED_HOSTS=localhost,127.0.0.1
       - AMAZON_S3_BUCKET=serenata-de-amor-data
       - AMAZON_S3_REGION=s3-sa-east-1
       - AMAZON_S3_CEAPTRANSLATION_DATE=2016-08-08
       - CELERY_BROKER_URL=amqp://guest:guest@queue/
    depends_on:
       - elm
       - tasks
       - postgres
    volumes:
       - "./contrib/data:/mnt/data"

  tasks:
    image: datasciencebr/jarbas-backend
    environment:
       - DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
       - CELERY_BROKER_URL=amqp://guest:guest@queue/
    depends_on:
       - postgres
       - queue
    command: [celery, worker, --app, jarbas]

  elm:
    image: datasciencebr/jarbas-frontend

  postgres:
    image: postgres:9.6.5-alpine
    environment:
      - POSTGRES_PASSWORD=mysecretpassword
      - POSTGRES_USER=jarbas
      - POSTGRES_DB=jarbas
    volumes:
      - ./db:/var/lib/postgresql

  queue:
    image: rabbitmq:3.6.11-alpine
Bring back Docker Hub images
Bring back Docker Hub images
