定制 dbtlr/wp-docker-dev 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dbtlr/wp-docker-dev

Composer 安装命令:

composer create-project dbtlr/wp-docker-dev

包简介

A Docker-based WordPress development environment

README 文档

README

Quick Start

This assumes you have Composer installed locally to help orchastrate local tools.

composer create-project dbtlr/wp-docker-dev wp-site

This will create a new wp-site directory, download the dependencies, and will also ask you a series of questions that are used to build a .env file which will be used to configure your Docker deploy.

Here's an example of the .env file that is created:

NAME=wp
DOMAIN=wp.loc
PHP_VERSION=7.2
WORDPRESS_VERSION=latest
MYSQL_ROOT_PASSWORD=rootpassword
IP_ROOT=172.16.200

Yous should also add an entry to your /etc/hosts file that maps the DOMAIN above to 127.0.0.1

If you're running multiple Docker instances, then change the IP_ROOT to another number, i.e. 172.16.201 to avoid conflicts.

Launch Docker Compose

docker-compose up

Once you see Command line: 'apache2 -D FOREGROUND' has completed, you should be able to navigate to http://$DOMAIN in your web browser.

If you wish to run Docker in the background, use

docker-compose up -d

In order to halt a Docker container running in the background, instead use:

docker-compose down

Your files

In the src/ directory you'll find 3 folders:

  • src/mu-plugins
  • src/plugins
  • src/themes

These are read-only mounts that you're able to update, but that the Docker container cannot change. This is done by default so that you handle maintaining your files using source control and not allow WordPress to accidently destory your work through its own automated install process.

Consider managing your plugins and themes using WPackagist instead. For your convenience, the basic composer configuration is included.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固