【发布时间】:2019-03-07 16:36:41
【问题描述】:
我正在 Lando 中为 Drupal 8 项目创建自定义服务。这是我第一次真正尝试通过 docker compose 方法添加服务,即使查看了 Lando 文档,我也不确定自己在做什么。我的 .lando.yml 文件如下。在运行lando start 之后,我得到了error: (HTTP code 500) server error - container <portainer container ID> is not connected to the network lando_bridge_network
name: drupal8
recipe: drupal8
config:
php: 7.2
via: apache
webroot: web
xdebug: false
conf:
php: lando/config/php.ini
mysql: lando/config/my.cnf
services:
database:
type: mysql:5.7
pma:
type: phpmyadmin
hosts:
- database
appserver:
composer:
phpunit/phpunit: '*'
behat/behat: 3.3.1
run:
- "ln -s /usr/local/bin/composer /usr/local/bin/composer.phar"
portainer:
type: compose
services:
image: portainer/portainer
command: /opt/bin/entry_point.sh -d /data -H tcp://localhost:9001
tooling:
phpunit:
service: appserver
description: run PHPUnit- use lando phpunit
behat:
service: appserver
description: run behat- use lando behat
cmd: cd /app ; behat # Run behat from the /app directory
【问题讨论】:
-
仅供参考,无法确定 Lando 有什么问题,但您需要从
command字段中删除--templates http://templates/templates.json部分。 -
哦,是的。我在当地做过。我会更新的。谢谢!