Set the host.env file in the root directory:
WP_SITEURL=http://bamtech.local/
WP_HOME=http://bamtech.local/
WP_CONTENT_URL=http://bamtech.local/wp-content
Start the containers:
docker-compose up -d
Detailed information here: https://jellyfish.atlassian.net/wiki/spaces/WIKI/pages/169213981/Set+Docker+CE+on+your+MAC
On 1st time deployment will take a couple of minutes as it will need to build the images and install the required wordpress plugins.
Browser to http://localhost to view the site, if you see a 502 Gateway error means the deployment still executing, wait few minutes till is completed.
set the host.env file:
cp host.env.default host.env
Modify the host.env to from project.local to localhost
Start the containers:
docker-compose up -d
1st time this will take a couple of minutes as it will need to build the images and install the required wordpress plugins.
Browser to http://localhost to view the site
./run.py plugin search PLUGIN_NAME
When you have found the plugin, add the slug to the "PLUGINS" array in:
./wordpress/wordpress-entrypoint.sh
Create a database dump:
docker exec [image-name] sh -c 'exec mysqldump -uwordpress -p"wordpress" wordpress' > wordpress_dump.sql
Add a sql dump to database:
docker exec -i [image-name] -uwordpress -p"wordpress" wordpress < ~/wordpress_dump.sql
Browse image:
docker exec -ti [image-name] bash
Copy files:
docker cp wp-stateless/ [image-name]:/var/www/html/wp-content/plugins/