Created
May 5, 2018 09:16
-
-
Save danstreeter/9fff6f24ed82542726fde44e87dcea50 to your computer and use it in GitHub Desktop.
Local Wordpress QuickStack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Can be used to quickly spin up Wordpress and MySQL containers for testing something quickly. | |
# uploads.ini content - Write this to a file local to your running docker command, removing the hashes. | |
# file_uploads = On | |
# memory_limit = 64M | |
# upload_max_filesize = 64M | |
# post_max_size = 64M | |
# max_execution_time = 600 | |
docker run --rm -d -p3306:3306 --name wp-mysql -eMYSQL_ROOT_PASSWORD=secret -eMYSQL_DATABASE=wordpress mysql:5.7 | |
docker run --rm -d -p8080:80 --name wordpress --link wp-mysql:mysql -v /$(pwd)/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini wordpress | |
docker stop wordpress wp-mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment