Laravel-Docker-Behat Localhost 问题

Laravel-Docker-Behat Localhost issue

我正在尝试使用 Behat(for BDD) 来获取主页的内容。我只是使用 Behat\MinkExtension\Context\MinkContext

中的方法
$this->visit();

但我仍然找不到页面。 有趣的是我居然可以

curl 127.0.0.1

这行得通。 我的 docker-compose.yml

version: '2'

services:
  nginx:
    image: dydx/alpine-nginx-phpfpm
    ports:
      - "80:80"
    volumes:
      - ./www:/var/www
      - ./sites:/etc/nginx/sites-enabled
    network_mode: "host"

  artisan:
    image: spiralout/dartisan
    volumes:
      - ./www:/var/www

  mysql:
    image: spiralout/alpine-mariadb
    ports:
      - "3306:3306"
    volumes:
      - ./database:/var/lib/mysql

  composer:
    image: spiralout/dcomposer
    volumes:
      - ./www:/var/www

  nodejs:  
    image: spiralout/dnodejs
    volumes:
      - ./www:/var/www

  redis:
    image: spiralout/alpine-redis
    volumes:
      - ./redis-data:/data

volumes:
  www:
  sites:
  redis-data:

然后我运行

 docker exec -it <nginx_name> /bin/bash

然后尝试 运行 behat
任何帮助表示赞赏

这个问题的解决方案原来是重新创建包含 dev-develop 标志的项目。
composer create-project laravel/laravel new dev-develop 希望这可以为某人节省时间