基于 LaraDock 在 Docker 中快速构建 Laravel 应用系列教程 —— 搭建开发环境

laradock

1、开始之前

LaraDock简介

LaraDock致力于简化创建开发环境过程,能够帮你在Docker上快速搭建Laravel应用。 就像Laravel Homestead一样,只不过用Docker替换了Vagrant。它预包装了Docker镜像,为我们提供了一站式的开发环境,而不需要再去在本地机器安装PHP、Nginx、MySQL以及其他任何开发过程中需要的软件。

支持的软件

  • 数据库引擎:
    • MySQL
    • PostgreSQL
    • MariaDB
    • MongoDB
    • Neo4j
  • 缓存引擎:
    • Redis
    • Memcached
  • PHP 服务器:
    • NGINX
    • Apache2
    • Caddy
  • PHP 编译工具:
    • PHP-FPM
    • HHVM
  • 消息队列系统:
    • Beanstalkd (+ Beanstalkd Console)
  • 工具:
    • Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL…) >如果你找不到你需要的软件,构建它然后把它添加到这个列表。

什么是Docker

Docker是一个开源的引擎,可以轻松的为任何应用创建一个轻量级的、可移植的、自给自足的容器。开发者在笔记本上编译测试通过的容器可以批量地在生产环境中部署,包括VMs(虚拟机)、bare metal、OpenStack 集群和其他的基础应用平台。

Docker vs Vagrant

从时间上来看,Vagrant启动虚拟机需要数分钟,而Docker只需数秒;从体量上来看,Vagrant提供的是完整的虚拟机,而Docker提供的是轻量级的虚拟容器,这些虚拟容器共享同一个内核并且允许在独立进程中运行;此外,从应用范围来说,Vagrant只能用于开发环境,而Docker即可用于开发环境也可用于生产环境。

LaraDock vs Homestead

类比Docker和Vagrant,LaraDock和Homestead都能够为我们提供完整的虚拟开发环境,LaraDock是用于管理控制Docker的工具,而Homestead是用于管理控制完整虚拟机(如VirtualBox+Ubuntu)的工具,LaraDock运行速度比Homestead更快。

2、环境搭建

讲完了上面的概念和术语,下面我们进入实战,开始基于LaraDock在本地安装开发环境。

依赖

安装之前,需要确保系统已经安装这两个软件:

安装LaraDock

如果系统尚未安装Laravel应用,需要从头开始搭建全新的环境,可以在系统任意位置克隆Github仓库到本地:

git clone https://github.com/LaraDock/laradock.git

如果之前已经安装了Laravel,也可以在Laravel应用根目录下克隆上述Github仓库代码。

安装Laravel应用

进入laradock目录,运行如下命令启动Nginx和MySQL(容器不存在的话会从远程下载到本地):

docker-compose up -d nginx mysql

你可以从以下列表选择你自己的容器组合:

nginx, hhvm, php-fpm, mysql, redis, postgres, mariadb, neo4j, mongo, apache2, caddy, memcached, beanstalkd, beanstalkd-console, workspace

注:workspace 和 php-fpm 将运行在大部分实例中, 所以不需要在 up 命令中加上它们。

启动之后,进入workspace容器,执行Laravel安装及Artisan命令等操作:

docker-compose exec —user=laradock workspace bash

我们以laradock用户的身份进入容器。

进入容器后,执行以下命令安装Laravel:

composer create-project laravel/laravel coolapp

安装完成后,编辑laradock目录下的docker-compose.yml文件修改目录映射(系统默认假定Laravel应用在LaraDock的父级目录中),我们需要用 ../my-cool-app/:/var/www替换 ../:/var/www

application:
build: ./application
volumes:
    - ../coolapp/:/var/www

接下来进入coolapp目录编辑.env的数据库配置:

DB_HOST=mysql

至此,基本安装及配置已经完成,我们在浏览器中访问http://localhost/,即可看到如下页面:

laravel-preview

是不是很方便快捷?

下一节我们将继续探讨Docker的一些常用操作以及Laravel项目关联软件和命令的使用。

LaraDock系列教程:

学院君 has written 737 articles

终身学习者,Laravel学院院长

62 thoughts on “基于 LaraDock 在 Docker 中快速构建 Laravel 应用系列教程 —— 搭建开发环境

  1. bone says:

    WARNING: The PMA_USER variable is not set. Defaulting to a blank string.
    WARNING: The PMA_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PMA_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PMA_DB_ENGINE variable is not set. Defaulting to a blank string.
    WARNING: The PMA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RETHINKDB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The DATA_SAVE_PATH variable is not set. Defaulting to a blank string.
    WARNING: The DOCKER_HOST_IP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_IDE_CONFIG variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_XDEBUG variable is not set. Defaulting to a blank string.
    WARNING: The INSTALL_BLACKFIRE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_SOAP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MONGO variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_AMQP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_ZIP_ARCHIVE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_BCMATH variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_GMP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PHPREDIS variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MEMCACHED variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_OPCACHE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_EXIF variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_AEROSPIKE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MYSQLI variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PGSQL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PG_CLIENT variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_TOKENIZER variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_INTL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_GHOSTSCRIPT variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_LDAP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_SWOOLE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_IMAGE_OPTIMIZERS variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_IMAGEMAGICK variable is not set. Defaulting to a blank string.
    WARNING: The PHP_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The MONGODB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The REDIS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_DB variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_USER variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_PORT variable is not set. Defaulting to a blank string.
    WARNING: The KIBANA_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_USER variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_TIMEZONE variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_CONTAINER variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_TIMEOUT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_SITES_PATH variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_SERVER_ID variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_SERVER_TOKEN variable is not set. Defaulting to a blank string.
    WARNING: The PHP_WORKER_INSTALL_PGSQL variable is not set. Defaulting to a blank string.
    WARNING: The LARAVEL_ECHO_SERVER_PORT variable is not set. Defaulting to a blank string.
    WARNING: The SELENIUM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The GRAFANA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOME variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOST_SLAVE_AGENT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MEMCACHED_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_CONFIG variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_CACHE_SIZE variable is not set. Defaulting to a blank string.
    WARNING: The VARNISHD_PARAMS variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_BACKEND_HOST variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_BACKEND_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_SERVER variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_CUSTOM_CADDYFILE variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_PHP_UPSTREAM_CONTAINER variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_PHP_UPSTREAM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_SITES_PATH variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_USER variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_CACHE_SIZE variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_BACKEND_HOST variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_SERVER variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_USER variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MINIO_PORT variable is not set. Defaulting to a blank string.
    WARNING: The HAPROXY_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_SERVICE_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_FABRIC_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_HEARTBEAT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_INFO_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MAILDEV_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MAILDEV_SMTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_DEFAULT_USER variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_DEFAULT_PASS variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_NODE_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_MANAGEMENT_HTTP_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ADM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ADM_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The ELASTICSEARCH_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ELASTICSEARCH_HOST_TRANSPORT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_XDEBUG variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SOAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LDAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MONGO variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_AMQP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PHPREDIS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_NODE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_YARN variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DRUSH variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DRUPAL_CONSOLE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_AEROSPIKE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_V8JS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_COMPOSER_GLOBAL_INSTALL variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_WORKSPACE_SSH variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LARAVEL_ENVOY variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LARAVEL_INSTALLER variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DEPLOYER variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LINUXBREW variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MC variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SYMFONY variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PYTHON variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAGE_OPTIMIZERS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAGEMAGICK variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_TERRAFORM variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DUSK_DEPS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PG_CLIENT variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SWOOLE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_PUID variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_PGID variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_CHROME_DRIVER_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_NODE_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_YARN_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_CLIENT_ID variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_CLIENT_TOKEN variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_SSH_PORT variable is not set. Defaulting to a blank string.
    WARNING: The BEANSTALKD_HOST_PORT variable is not set. Defaulting to a blank string.
    ERROR: The Compose file ‘.\docker-compose.yml’ is invalid because:
    services.proxy.expose is invalid: should be of the format ‘PORT[/PROTOCOL]’
    services.proxy2.expose is invalid: should be of the format ‘PORT[/PROTOCOL]’
    services.memcached.ports is invalid: Port ranges don’t match in length
    services.beanstalkd.ports is invalid: Port ranges don’t match in length
    services.mssql.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.workspace.ports is invalid: Port ranges don’t match in length
    services.maildev.ports is invalid: Port ranges don’t match in length
    services.mongo.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.grafana.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.mariadb.ports is invalid: Port ranges don’t match in length
    services.mysql.ports is invalid: Port ranges don’t match in length
    services.percona.ports is invalid: Port ranges don’t match in length
    services.apache2.ports is invalid: Port ranges don’t match in length
    services.caddy.ports is invalid: Port ranges don’t match in length
    services.nginx.ports is invalid: Port ranges don’t match in length
    services.selenium.ports is invalid: Port ranges don’t match in length
    services.jenkins.ports is invalid: Port ranges don’t match in length
    services.postgres.ports is invalid: Port ranges don’t match in length
    services.postgres-postgis.ports is invalid: Port ranges don’t match in length
    services.kibana.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.laravel-echo-server.ports is invalid: Port ranges don’t match in length
    services.redis.ports is invalid: Port ranges don’t match in length
    services.apache2.ports is invalid: Port ranges don’t match in length
    services.caddy.ports is invalid: Port ranges don’t match in length
    services.maildev.ports is invalid: Port ranges don’t match in length
    services.nginx.ports is invalid: Port ranges don’t match in length
    services.phpmyadmin.ports is invalid: Port ranges don’t match in length
    services.adminer.ports is invalid: Port ranges don’t match in length
    services.jenkins.ports is invalid: Port ranges don’t match in length
    services.rethinkdb.ports is invalid: Port ranges don’t match in length
    services.haproxy.ports is invalid: Port ranges don’t match in length
    services.minio.ports is invalid: Port ranges don’t match in length
    services.elasticsearch.ports is invalid: Port ranges don’t match in length
    services.elasticsearch.ports is invalid: Port ranges don’t match in length

    bone@boneq-pc MINGW64 /d/docker/laradock (master)
    $ docker-compose up -d nginx mysql
    WARNING: The PMA_USER variable is not set. Defaulting to a blank string.
    WARNING: The PMA_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PMA_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PMA_DB_ENGINE variable is not set. Defaulting to a blank string.
    WARNING: The PMA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RETHINKDB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The DATA_SAVE_PATH variable is not set. Defaulting to a blank string.
    WARNING: The DOCKER_HOST_IP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_IDE_CONFIG variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_XDEBUG variable is not set. Defaulting to a blank string.
    WARNING: The INSTALL_BLACKFIRE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_SOAP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MONGO variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_AMQP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_ZIP_ARCHIVE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_BCMATH variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_GMP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PHPREDIS variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MEMCACHED variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_OPCACHE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_EXIF variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_AEROSPIKE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_MYSQLI variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PGSQL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_PG_CLIENT variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_TOKENIZER variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_INTL variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_GHOSTSCRIPT variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_LDAP variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_SWOOLE variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_IMAGE_OPTIMIZERS variable is not set. Defaulting to a blank string.
    WARNING: The PHP_FPM_INSTALL_IMAGEMAGICK variable is not set. Defaulting to a blank string.
    WARNING: The PHP_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The MONGODB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The REDIS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_DB variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_USER variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The POSTGRES_PORT variable is not set. Defaulting to a blank string.
    WARNING: The KIBANA_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_USER variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_TIMEZONE variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The MYSQL_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_CONTAINER variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_PHP_UPSTREAM_TIMEOUT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_SITES_PATH variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The APACHE_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_SERVER_ID variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_SERVER_TOKEN variable is not set. Defaulting to a blank string.
    WARNING: The PHP_WORKER_INSTALL_PGSQL variable is not set. Defaulting to a blank string.
    WARNING: The LARAVEL_ECHO_SERVER_PORT variable is not set. Defaulting to a blank string.
    WARNING: The SELENIUM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The GRAFANA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOME variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOST_SLAVE_AGENT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The JENKINS_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MEMCACHED_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_CONFIG variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_CACHE_SIZE variable is not set. Defaulting to a blank string.
    WARNING: The VARNISHD_PARAMS variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_BACKEND_HOST variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_BACKEND_PORT variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY2_SERVER variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_CUSTOM_CADDYFILE variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The CADDY_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_PHP_UPSTREAM_CONTAINER variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_PHP_UPSTREAM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_LOG_PATH variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_SITES_PATH variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The NGINX_HOST_HTTPS_PORT variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_USER variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_PORT variable is not set. Defaulting to a blank string.
    WARNING: The PERCONA_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_CACHE_SIZE variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_BACKEND_HOST variable is not set. Defaulting to a blank string.
    WARNING: The VARNISH_PROXY1_SERVER variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_USER variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MARIADB_ENTRYPOINT_INITDB variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_DATABASE variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_PASSWORD variable is not set. Defaulting to a blank string.
    WARNING: The MSSQL_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MINIO_PORT variable is not set. Defaulting to a blank string.
    WARNING: The HAPROXY_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_SERVICE_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_FABRIC_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_HEARTBEAT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The AEROSPIKE_INFO_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MAILDEV_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The MAILDEV_SMTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_DEFAULT_USER variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_DEFAULT_PASS variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_NODE_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_MANAGEMENT_HTTP_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ADM_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ADM_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The ELASTICSEARCH_HOST_HTTP_PORT variable is not set. Defaulting to a blank string.
    WARNING: The ELASTICSEARCH_HOST_TRANSPORT_PORT variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_XDEBUG variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SOAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LDAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MONGO variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_AMQP variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PHPREDIS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MSSQL variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_NODE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_YARN variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DRUSH variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DRUPAL_CONSOLE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_AEROSPIKE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_V8JS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_COMPOSER_GLOBAL_INSTALL variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_WORKSPACE_SSH variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LARAVEL_ENVOY variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LARAVEL_INSTALLER variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DEPLOYER variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_LINUXBREW variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_MC variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SYMFONY variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PYTHON variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAGE_OPTIMIZERS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_IMAGEMAGICK variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_TERRAFORM variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_DUSK_DEPS variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_PG_CLIENT variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_INSTALL_SWOOLE variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_PUID variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_PGID variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_CHROME_DRIVER_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_NODE_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_YARN_VERSION variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_CLIENT_ID variable is not set. Defaulting to a blank string.
    WARNING: The BLACKFIRE_CLIENT_TOKEN variable is not set. Defaulting to a blank string.
    WARNING: The WORKSPACE_SSH_PORT variable is not set. Defaulting to a blank string.
    WARNING: The BEANSTALKD_HOST_PORT variable is not set. Defaulting to a blank string.
    ERROR: The Compose file ‘.\docker-compose.yml’ is invalid because:
    services.proxy.expose is invalid: should be of the format ‘PORT[/PROTOCOL]’
    services.proxy2.expose is invalid: should be of the format ‘PORT[/PROTOCOL]’
    services.memcached.ports is invalid: Port ranges don’t match in length
    services.beanstalkd.ports is invalid: Port ranges don’t match in length
    services.mssql.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.workspace.ports is invalid: Port ranges don’t match in length
    services.maildev.ports is invalid: Port ranges don’t match in length
    services.mongo.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.grafana.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.aerospike.ports is invalid: Port ranges don’t match in length
    services.mariadb.ports is invalid: Port ranges don’t match in length
    services.mysql.ports is invalid: Port ranges don’t match in length
    services.percona.ports is invalid: Port ranges don’t match in length
    services.apache2.ports is invalid: Port ranges don’t match in length
    services.caddy.ports is invalid: Port ranges don’t match in length
    services.nginx.ports is invalid: Port ranges don’t match in length
    services.selenium.ports is invalid: Port ranges don’t match in length
    services.jenkins.ports is invalid: Port ranges don’t match in length
    services.postgres.ports is invalid: Port ranges don’t match in length
    services.postgres-postgis.ports is invalid: Port ranges don’t match in length
    services.kibana.ports is invalid: Port ranges don’t match in length
    services.rabbitmq.ports is invalid: Port ranges don’t match in length
    services.laravel-echo-server.ports is invalid: Port ranges don’t match in length
    services.redis.ports is invalid: Port ranges don’t match in length
    services.apache2.ports is invalid: Port ranges don’t match in length
    services.caddy.ports is invalid: Port ranges don’t match in length
    services.maildev.ports is invalid: Port ranges don’t match in length
    services.nginx.ports is invalid: Port ranges don’t match in length
    services.phpmyadmin.ports is invalid: Port ranges don’t match in length
    services.adminer.ports is invalid: Port ranges don’t match in length
    services.jenkins.ports is invalid: Port ranges don’t match in length
    services.rethinkdb.ports is invalid: Port ranges don’t match in length
    services.haproxy.ports is invalid: Port ranges don’t match in length
    services.minio.ports is invalid: Port ranges don’t match in length
    services.elasticsearch.ports is invalid: Port ranges don’t match in length
    services.elasticsearch.ports is invalid: Port ranges don’t match in length

发表评论

标记为*的字段是必填项(邮箱地址不会被公开)

你可以使用这些HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>