Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Good Migrations

Good Migrations

My experiences of migrating Santa Ana Ltd WordPress estate to Docker

76eb5847f0ecf87aba817ee37547c537?s=128

Mark Sta Ana

February 25, 2016
Tweet

Transcript

  1. Moving a WordPress site to Docker Mark Santa Ana @booyaa

    github.com/booyaa booyaa.org Good Migrations
  2. Who am I? ‣ Polyglot dev with Ops background ‣

    Sysadmin for Santa Ana Ltd
  3. Our Setup PREVIOUS ‣ Virtual Private Server ‣ LAMP NEW

    ‣ Cloud Server ‣ Docker ‣ LEMP
  4. Docker source: https://www.docker.com/what-docker

  5. Why did we choose Docker? ‣ Secure

  6. Why did we choose Docker? ‣ Secure ‣ Reproducible

  7. Why did we choose Docker? ‣ Secure ‣ Reproducible ‣

    Explicit
  8. Why did we choose Docker? ‣ Secure ‣ Reproducible ‣

    Explicit ‣ Flexible
  9. Why did we choose Docker? ‣ Secure ‣ Reproducible ‣

    Explicit ‣ Flexible ‣ Economical
  10. Why should you choose Docker? Democratises technology, just like WordPress

  11. Migration ‣ Backup ‣ Install/Setup Docker ‣ Restore

  12. TIL

  13. Permissions ‣ chown -R www-data:www-data /var/www/html ‣ docker exec -it

    name_of_wordpress_container
  14. Mail ‣ Postman SMTP

  15. Security ‣ Goodbye fail2ban ‣ Hello Wordfence ‣ Hello 2FA

  16. Summary ‣ WordPress on Docker is easy ‣ It requires

    some technical expertise ‣ Moving to Docker could be easier (but there’s an app for that)
  17. santaana.co.uk

  18. None
  19. Resources What is Docker 
 chown command
 
 WordPress permissions


    
 Fail2ban 
 Postman
 WordFence
 2FA
 
 Kitematic
 hyperironclad https://www.docker.com/what-docker
 http://www.cyberciti.biz/faq/how-to-use-chmod- and-chown-command/
 http://www.chrisabernethy.com/why-wordpress- asks-connection-info/
 http://www.fail2ban.org/
 https://wordpress.org/plugins/postman-smtp/
 https://wordpress.org/plugins/wordfence/
 https://wordpress.org/plugins/wp-google- authenticator/
 https://www.docker.com/products/docker-kitematic
 http://github.com/booyaa/hyperironclad