machine:
  services:
    - docker

dependencies:
  override:
    - sudo pip install --upgrade docker-compose==1.5.2

database:
  pre:
    - docker-compose build --rm=false
    - docker-compose run app bundle install
  override:
    - docker-compose run app db:create

test:
  override:
    - docker-compose run app bundle exec rspec

machine:
  services:
    - docker

dependencies:
  override:
    - sudo pip install --upgrade docker-compose==1.5.2

database:
  pre:
    - docker-compose build
    - docker-compose run app bundle install
  override:
    - docker-compose run app db:create

test:
  override:
    - docker-compose run app bundle exec rspec

Remove wrong option for docker compose build
Remove wrong option for docker compose build
