Skip to content

nulllogic/frankenphp-wordpress-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCSSleon framework

FrankenPHP + WordPress 🚀

Welcome to this FrankenPHP-WordPress-Docker! With just a few commands, you'll get a fully functional WordPress instance based on FrankenPHP, MariaDB – completely in Docker 🛳️.


📋 Prerequisites


🏗️ Installation

# 1) Clone the repository (if not already done)
git clone frankenphp-wordpress-docker
cd frankenphp-wordpress-docker

# 2) Download WordPress (creates ./wordpress)
make install-wp

# 4) Generate docker-compose for the desired environment
make build

# 5) Start the stack (FrankenPHP, MariaDB)
make up

Within seconds, you can access:


⚙️ Makefile Commands

Command Description
make up Build containers (if needed) & start them in the background
make start Start stopped containers
make stop Stop containers without deleting them
make down Stop and remove containers (Volumes remain)
make logs Follow live logs from all containers
make build Rebuild images
make clean Full reset: Remove containers, images, volumes & orphans
make install-wp Download latest WordPress source & extract to ./wordpress
make help Overview of all targets

🧩 Docker Services

Service Purpose Port
frankenphp PHP 8.4 Runtime + Webserver (Base: dunglas/frankenphp:php8.4) Dev: 8090 → 80
db MariaDB 11 with persistent volume storage (db_data) 3306

🔑 Environment Variables

All variables are managed in .env and used in docker-compose.yml:

Variable Default Description
SERVER_NAME localhost Public domain/host of your WP site (FrankenPHP variable)
MYSQL_DATABASE wordpress Database name
MYSQL_USER user DB user
MYSQL_PASSWORD pass DB password
MYSQL_ROOT_PASSWORD rootroot Root password (internal only)

🔒 Security: .env is listed in .gitignore. Never share real credentials in public repos!

🧹 Cleanup

make clean   # removes EVERYTHING (Containers, Images, Volumes)

🤝 License

See LICENSE.

Have fun 🎉

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published