WordPress Docker Start Theme — This is a starter WordPress theme that runs in a Docker environment along with MySQL and phpMyAdmin. The frontend is built using Webpack, PostCSS, and supports Tailwind CSS. The project includes two build modes (dev and prod), as well as features for font conversion and versioning for JS and CSS files.
Docker:
Webpack:
PostCSS і Tailwind CSS:
Font Conversion:
Make sure that Docker and Docker Compose are installed on your machine. To start the entire environment, run:
(This command will raise containers for WordPress, MySQL and phpMyAdmin.)
docker-compose up -d
Stopping the environment.
docker-compose down --volumes
Navigate to the theme folder:
cd theme
Install the necessary dependencies:
yarn
To run Webpack in development mode with automatic reloading:
The local server will be available at: http://localhost:3003
yarn dev
To build the project in production mode:
yarn build
To convert fonts to .woff2 format and generate an SCSS file with @font-face rules, as well as to link fonts in the head, use:
yarn fonts