version: '2.1'
services:
    db:
        image: ilios/mysql-demo
        ports:
            - "13306:3306"
    web:
        build: ./
        environment:
            - APP_ENV=dev
            - APP_DEBUG=true
            - ILIOS_DATABASE_URL=mysql://ilios:ilios@db/ilios
            - ILIOS_REQUIRE_SECURE_CONNECTION=false
            - ILIOS_ERROR_CAPTURE_ENABLED=false
            - ILIOS_ELASTICSEARCH_HOSTS=elasticsearch
            - ILIOS_FILE_SYSTEM_STORAGE_PATH=/tmp
        ports:
            - "8000:80"
        volumes:
            - ./:/var/www/ilios:delegated
    elasticsearch:
        image: elasticsearch:6.7.1
        environment:
            - http.cors.enabled=true
            - http.cors.allow-origin=http://localhost:1358
            - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
            - http.cors.allow-credentials=true
        ports:
            - "9200:9200"
    searchui:
        image: appbaseio/dejavu
        ports:
            - "1358:1358"
version: '2.1'
services:
    db:
        image: ilios/mysql-demo
        ports:
            - "13306:3306"
    web:
        build: ./
        environment:
            - APP_ENV=dev
            - APP_DEBUG=true
            - ILIOS_DATABASE_URL=mysql://ilios:ilios@db/ilios
            - ILIOS_REQUIRE_SECURE_CONNECTION=false
            - ILIOS_ERROR_CAPTURE_ENABLED=false
            - ILIOS_ELASTICSEARCH_HOSTS=elasticsearch
            - ILIOS_FILE_SYSTEM_STORAGE_PATH=/tmp
        ports:
            - "8000:80"
        volumes:
            - ./:/var/www/ilios:delegated
    elasticsearch:
        image: elasticsearch:6.7.1
        environment:
            - http.cors.enabled=true
            - http.cors.allow-origin=http://localhost:1358
            - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
            - http.cors.allow-credentials=true
            - http.max_content_length=10mb #matches the AWS ElasticSearch limit
        ports:
            - "9200:9200"
    searchui:
        image: appbaseio/dejavu
        ports:
            - "1358:1358"
Set elasticsearch option to match AWS
Set elasticsearch option to match AWS

We need to discover if we're going over this hard limit in development
instead of waiting for production.
