version: "3"
services:
  web:
    build: .
    volumes:
      - .:/app
      - .:/marli
    container_name: marli
    ports:
      - "3000:3000"
    env_file:
      - test.env
    environment:
      CI:
      CODECLIMATE_REPO_TOKEN:
      COVERALLS_REPO_TOKEN:
    depends_on:
      - setup_dbs

  test:
    build: .
    volumes:
      - .:/app
    environment:
      RAILS_ENV: test
    env_file:
      - test.env
    command: "tail -f /dev/null"
    depends_on:
      - setup_dbs

  setup_dbs:
    build: .
    volumes:
      - .:/app
    environment:
      MARLI_DB_HOST: db
    command: bash -c "sleep 5; rake db:setup"
    depends_on:
      - db

  db:
    image: library/mysql:5.6.22
    expose:
      - "3306"
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'

version: "3"
services:
  web:
    build: .
    volumes:
      # - .:/app
      - .:/marli
    container_name: marli
    ports:
      - "3000:3000"
    env_file:
      - test.env
    environment:
      CI:
      CODECLIMATE_REPO_TOKEN:
      COVERALLS_REPO_TOKEN:
    depends_on:
      - setup_dbs

  test:
    build: .
    volumes:
      - .:/app
    environment:
      RAILS_ENV: test
    env_file:
      - test.env
    command: "tail -f /dev/null"
    depends_on:
      - setup_dbs

  setup_dbs:
    build: .
    volumes:
      - .:/app
    environment:
      MARLI_DB_HOST: db
    command: bash -c "sleep 5; rake db:setup"
    depends_on:
      - db

  db:
    image: library/mysql:5.6.22
    expose:
      - "3306"
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'

Add another volume for circle
Add another volume for circle
