Skip to content

Instantly share code, notes, and snippets.

@danstreeter
Created May 5, 2018 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danstreeter/9fff6f24ed82542726fde44e87dcea50 to your computer and use it in GitHub Desktop.
Save danstreeter/9fff6f24ed82542726fde44e87dcea50 to your computer and use it in GitHub Desktop.
Local Wordpress QuickStack
# 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