title: Docker config : Celery + RabbitMQ
body: <p>How do I run Celery and RabbitMQ in a docker container? Can you point me to sample dockerfile or compose files?</p>
  
  <p>This is what I have:</p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM python:3.4
  ENV PYTHONBUFFERED 1
  WORKDIR /tasker
  ADD requirements.txt /tasker/
  RUN pip install -r requirements.txt
  ADD . /tasker/
  </code></pre>
  
  <p>docker-compose.yml</p>
  
  <pre><code>rabbitmq:
    image: tutum/rabbitmq
    environment:
      - RABBITMQ_PASS=mypass
    ports:
      - "5672:5672"   
      - "15672:15672"
  celery:
    build: .
    command: celery worker --app=tasker.tasks
    volumes:
      - .:/tasker
    links:
      - rabbitmq:rabbit
  </code></pre>
  
  <p>The issue I'm having is I cant get Celery to stay alive or running. It keeps exiting.</p>