Laradock build development environment

Time:2021-4-18

Configure the local laradock environment (development environment)

Clone laradock source code to local environment

The docker environment needs to be installed before running

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

Create. Env file

cp env-example-local .env

  • You can modify the contents of the. Env file according to the situation. The following is the configuration that needs to be modified for the current project.

WORKSPACE_COMPOSER_REPO_PACKAGIST=https://mirrors.aliyun.com/co… WORKSPACE_NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirror… … WORKSPACE_INSTALL_MONGO=true
WORKSPACE_INSTALL_AMQP=true
WORKSPACE_INSTALL_SWOOLE=true

Refer to readme in laradock project- zh.md Document description

  • Building a mirror image

docker-compose build workspace mysql nginx redis elasticsearch mongo rabbitmq

  • Open the following services

docker-compose up -d workspace mysql nginx redis elasticsearch mongo rabbitmq

Finally, enter the container to execute other commands, such as artisan

docker-compose exec workspace bash

Recommended Today

Looking for frustration 1.0

I believe you have a basic understanding of trust in yesterday’s article. Today we will give a complete introduction to trust. Why choose rust It’s a language that gives everyone the ability to build reliable and efficient software. You can’t write unsafe code here (unsafe block is not in the scope of discussion). Most of […]