schibsted-seals / wordpress-docker-template
0.1.0
2015-03-03 08:35 UTC
Requires
- php: >=5.3.0
- fancyguy/webroot-installer: 1.0.0
- wordpress: 4.1
This package is not auto-updated.
Last update: 2024-09-28 16:20:42 UTC
README
使用 Composer 安装
如果您想将其用作项目模板,请运行以下命令
composer create-project schibsted-seals/wordpress-docker-template my_project_folder/
需求
- VirtualBox
- Vagrant
- Vagrant 扩展
vagrant plugin install vagrant-vbguest
Vagrant 环境
使用 Docker 提供程序启动 Vagrant
vagrant up --provider=docker --no-parallel
将 local-config.php.dist 的副本保存为 local-config.php。之后,WordPress 实例应在 http://192.168.33.15 和 https://:8080 下可用
高级配置
您可以在 proxy/Vagrantfile.proxy 中更改入口点
第一个 URL 是通过将 IP 分配给代理机器来提供的
config.vm.network "private_network", ip: "192.168.33.15"
后者可以通过端口转发获得
config.vm.network "forwarded_port", guest: 80, host: 8080
在发生冲突的情况下,您可能需要更改/禁用端口转发。
自定义域名
您可以将假域名映射到刚刚创建的机器。为此,请在您的 /etc/hosts 中输入以下行
192.168.33.15 mydomain.dev
Shell 访问
要使用 ssh 连接,请使用
vagrant ssh wordpress-example
默认用户的密码是 123,可在 Dockerfile 中配置