Our own flavor of Wordpress.
Set Environment Variables Our setup requires an SSH Tunnel. In order to pull DB from a remote server, set the following variables to tunnel into the server and dump the remote DB.
- SSH_KEY_PATH: Path to SSH identity file for server logging
- SSH_USER: User to connect to server
- IP_ADDRESS: IP address of the remote server
- PORT: Remote server port
- MYSQL_HOST: Hostname for MySQL
- MYSQL_USER: User for MySQL
- MYSQL_PASS: Password for Mysql User
- MYSQL_DB: MySQL Database to connect to
Pull latest DB
brew install email@example.com
run the following command if brew doesn't add this to your path and mysqldump isn't found. Ensure the version numbers are the same.
This will create the containers and populate the database with the given dump. You may set your host entry and change it in the database, or you simply overwrite it in
wp-config.php by adding:
Two new folders will be created.
wp-data– used to store and restore database dumps
wp-app– the location of your WordPress application
then in another terminal run:
The containers are now built and running. You should be able to access the WordPress installation with the configured IP in the browser address. By default it is
To stop and remove all the containers use the
Login with username
root and password
<DB_ROOT_PASSWORD> env variable