Skip to content
Docker configuration to create WordPress themes.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languages
template-pages
template-parts
wp-content
.env.example
.gitignore
404.php
README.md
archive.php
comments.php
composer.json
composer.lock
docker-compose.yml
footer.php
front-page.php
functions.php
header.php
index.php
mailhog.php
page.php
screenshot.png
search.php
sidebar.php
single.php
style.css
uploads.ini

README.md

DockerPress

Docker configuration to create WordPress themes.

Docker services:

  • Wordpress
  • MySQL
  • Mailhog

Getting Started

git clone git@github.com:wilcho-vnz/dockerpress.git
cd dockerpress
cp .env.example .env
composer install # available plugins ( optional )
docker-compose up

How to catch emails with MailHog

Include the mailhog.php file in your functions.php file and you're done.

How to access Mailhog UI

NOTE: this use the port set in you .env file

Local Database Backup

Here's how to dump your local database with Docker into a .sql file

docker exec -it host_db_1 /usr/bin/mysqldump -u username -ppassword database_name > backup.sql

Local Database Restore

Restore a previous database backup

docker exec -i host_db_1 /usr/bin/mysql -u username -ppassword database_name < backup.sql

Author


MIT

You can’t perform that action at this time.