markusos/simple-search

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
web:
  build: .
  command: php -S 0.0.0.0:8000 -t /code/src/Demo
  #command: /code/vendor/bin/phpunit --coverage-text -c /code/phpunit.xml.dist
  ports:
    - "8000:8000"
  links:
    - db
    - mongo
    - memcached
  volumes:
    - .:/code
  environment:
    DB_HOST: db
    DB_NAME: test
    DB_USER: root
    DB_PASSWORD: password
    MEMCACHED_HOST: memcached
    MEMCACHED_PORT: 11211
    MONGO_HOST: mongo
    MONGO_PORT: 27017
    TEST_DATASET_PATH: /code/tests/Wikipedia_sample_dataset.json
db:
  hostname: db
  image: mysql
  environment:
    MYSQL_DATABASE: test
    MYSQL_ROOT_PASSWORD: password

mongo:
  image: mongo
  command: mongod --smallfiles --quiet --logpath=/dev/null

memcached:
   hostname: memcached
   image: memcached
   environment:
     MEMCACHED_MEMORY_LIMIT: 128