Skip to content

jkrat/Headless-Wordpress-Container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Headless Wordpress

A WordPress backend serving up content via the WP REST API

The Wordpress Backend includes:

Installing

Prerequisite: Before you begin, you need Docker installed. On Linux, you might need to install docker-compose separately.

Docker Compose builds and starts two containers by default: publicsite-db, publicsite-wp:

cd WP-Backend
docker-compose up -d

Wait a few minutes for Docker to build the services for the first time. After the initial build, startup should only take a few seconds.

You can use some useful Docker tools like Kitematic and/or VSCode Docker plugin to follow logs, start / stop / remove containers and images.

With the containers running:

The publicsite-wp container exposes Apache on host port 8080:

Database

The publicsite-db container exposes MySQL on host port 3307.

Acknowledgments

Thanks to Postlight for their WordPress + React Starter Kit

About

Containerized Headless Wordpress backend for local dev

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published