db:
  image: mysql:5.5
  environment:
    - MYSQL_DATABASE=remo
    - MYSQL_USER=remo
    - MYSQL_PASSWORD=remo
    - MYSQL_ROOT_PASSWORD=root
memcached:
  image: memcached
broker:
  image: rabbitmq
celery:
  build: .
  volumes:
    - .:/code
  links:
    - db
    - broker
    - memcached
  command: celery -A remo worker -l INFO
  environment:
    - C_FORCE_ROOT=true
web:
  build: .
  ports:
    - "8000:8000"
  volumes:
    - .:/code
  links:
    - db
    - broker
    - celery
    - memcached
  command: python manage.py runserver 0.0.0.0:8000

db:
  image: mysql:5.5
  environment:
    - MYSQL_DATABASE=remo
    - MYSQL_USER=remo
    - MYSQL_PASSWORD=remo
    - MYSQL_ROOT_PASSWORD=root
  entrypoint:
    - docker-entrypoint.sh
    - --max_allowed_packet=2M
memcached:
  image: memcached
broker:
  image: rabbitmq
celery:
  build: .
  volumes:
    - .:/code
  links:
    - db
    - broker
    - memcached
  command: celery -A remo worker -l INFO
  environment:
    - C_FORCE_ROOT=true
web:
  build: .
  ports:
    - "8000:8000"
  volumes:
    - .:/code
  links:
    - db
    - broker
    - celery
    - memcached
  command: python manage.py runserver 0.0.0.0:8000

Fix migration problem in docker
Fix migration problem in docker

Running migration made the mysql server gone away in docker. so need
to fix it by extending the maximum allowed package. by default it is 1M
