WordPress boilerplate with Bedrock, Lumberjack, Laravel mix on docker
This repository is a boilerplate for setting up a Wordpress project on a Mac or Linux host machine and is based on the following stack:
$ composer create-project hingeltd/wordpress-starter
PORT 80
and PORT 3306
is not being currently used by any other services
$ docker-compose up -d
Install the npm packages with the following command on the Lumberjack root at web/app/themes/lumberjack/
$ npm install
Run a dev build on the same directory to have the theme assets built for frontend
$ npm run dev
.env
file:DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_HOST
- Database hostWP_ENV
- Set to environment (development
, staging
, production
)WP_HOME
- Full URL to WordPress home (http://localhost)WP_SITEURL
- Full URL to WordPress including subdirectory (http://localhost/wp)AUTH_KEY
, SECURE_AUTH_KEY
, LOGGED_IN_KEY
, NONCE_KEY
, AUTH_SALT
, SECURE_AUTH_SALT
, LOGGED_IN_SALT
, NONCE_SALT
MYSQL_PORT
- Docker Mysql Container portWEB_PORT
- Docker Web Server (nginx) port if you want to use any other port than port 80. If you use any other port, make sure to change the WP_HOME
from http://localhost
to http://localhost:PORT
.env
variables is updated with the following commandsh $ docker-compose up --build