version: '3.4'
services:
  web:
    image: mozmeao/kitsune:base-dev-latest
    command: ./manage.py runserver 0.0.0.0:8000
    user: ${UID:-kitsune}
    depends_on:
      - mariadb
      - elasticsearch
      - redis
    ports:
      - "8000:8000"
  mariadb:
    image: mariadb:10.0
    environment:
      - MYSQL_ROOT_PASSWORD=kitsune
      - MYSQL_USER=kitsune
      - MYSQL_PASSWORD=kitsune
      - MYSQL_DATABASE=kitsune
    entrypoint:
      - docker-entrypoint.sh
      - --character-set-server=utf8
      - --collation-server=utf8_unicode_ci
    volumes:
      - mysqlvolume:/var/lib/mysql

  elasticsearch:
    image: elasticsearch:2.4

  redis:
    image: redis:3

volumes:
    mysqlvolume:

version: '3.4'
services:
  web:
    image: mozmeao/kitsune:base-dev-latest
    command: ./manage.py runserver 0.0.0.0:8000
    user: ${UID:-kitsune}
    depends_on:
      - mariadb
      - elasticsearch
      - redis
    ports:
      - "8000:8000"
  mariadb:
    image: mariadb:10.0
    environment:
      - MYSQL_ROOT_PASSWORD=kitsune
      - MYSQL_USER=kitsune
      - MYSQL_PASSWORD=kitsune
      - MYSQL_DATABASE=kitsune
    entrypoint:
      - docker-entrypoint.sh
      - --character-set-server=utf8
      - --collation-server=utf8_unicode_ci
      - --max_allowed_packet=1073741824
    volumes:
      - mysqlvolume:/var/lib/mysql

  elasticsearch:
    image: elasticsearch:2.4

  redis:
    image: redis:3

volumes:
    mysqlvolume:

Add max_allow_packet to mysql container.
Add max_allow_packet to mysql container.

This should fix the 'MySQL has gone away' error during testing.
