docker-base-env
docker-base-env copied to clipboard
A Basic Docker Environment for WordPress Development
How to Set Up
- Download the repo content
- Go to the
/dockerfolder - Run
docker-compose up
Available Tools
MailHog
Uncomment the mailhog section in the docker-compose.yml. It'll be available at http://localhost:8025. Make sure to keep the docker/dev.ini content.
PHPMyAdmin
Uncomment the phpmyadmin section in the docker-compose.yml. It'll be available at http://localhost:8080.
DB
To import and export a DB Dump
As database content is not versioned by default, you can run ./dump-db.sh to generate a dump of the dev DB version. To restore the existent dev DB version, you can run ./update-db.sh. CAUTION: It will overwrite your database.
To import from the Live Env
It is possible to automatically generate a database dump from the live/production site. You'll need to change the update-local-from-live.sh file and then run it.