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

Mark Sta Ana

February 25, 2016
Tweet

More Decks by Mark Sta Ana

Other Decks in Technology

Transcript

  1. Moving a WordPress site to Docker
    Mark Santa Ana
    @booyaa
    github.com/booyaa
    booyaa.org
    Good Migrations

    View Slide

  2. Who am I?
    ‣ Polyglot dev with Ops background
    ‣ Sysadmin for Santa Ana Ltd

    View Slide

  3. Our Setup
    PREVIOUS
    ‣ Virtual Private Server
    ‣ LAMP
    NEW
    ‣ Cloud Server
    ‣ Docker
    ‣ LEMP

    View Slide

  4. Docker
    source: https://www.docker.com/what-docker

    View Slide

  5. Why did we choose Docker?
    ‣ Secure

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  10. Why should you choose Docker?
    Democratises technology, just like WordPress

    View Slide

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

    View Slide

  12. TIL

    View Slide

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

    View Slide

  14. Mail
    ‣ Postman SMTP

    View Slide

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

    View Slide

  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)

    View Slide

  17. santaana.co.uk

    View Slide

  18. View Slide

  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

    View Slide