UPDATE 2021: Checkout https://github.com/programmieraffe/ddev-pull-wp
This tutorial is for existing wordpress sites, which you want to edit/develop locally with ddev. Use case: Maybe you have a child-theme or plugin stored in git and you want to test it with the actual wordpress website.
- Setup blank folder mylocalwpsite/, add .ddev/config.yaml
- Adjust Line 19 in config.yaml and change it to the actual live URL of your wp site
- Dump your sql-Database (e.g. phpMyAdmin), reimport it with ddev import-db (https://ddev.readthedocs.io/en/latest/users/cli-usage/#importing-a-database)
- Download all wordpress files via sftp/ssh in your local folder (or use plugins such as https://wordpress.org/plugins/backwpup/), except your git tracked files (child-theme or plugin e.g.)
- ddev start