Nowadays everything runs on Docker.
This is Compose27 for PHP, a bootstrap enviroment for PHP development based on Docker Compose.
It consists of containers for Apache/PHP, MySQL, and phpMyAdmin.
You should be set for PHP development just by cloning the repo and then running:
docker compose up
The way it's set up you'll have the Apache web server running on localhost:8080
and phpMyAdmin on localhost:8081
.
The folder called web/
will be mounted at the root of the web server, so any folder/file structure there will be served on http://localhost:8080/
.
Can I run Wordpress locally with this?
Yes! Just follow the Wordpress official installation guide.
phpMyAdmin is presenting me a login page, what are the credentials?
The credentials for the database have the following default values:
user: root
password: 2727
What's the name of the database? Do I need to create one?
You're free to create as many databases as you like. That can be easily done through the phpMyAdmin
GUI, or through the mysqli
PHP extension that Compose27 installs.
In any case, by default there's an empty database with the name development
. You're welcome to do with it whatever you may need to.
Created in the Dominican Republic 🇩🇴