Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

Why did we choose Docker? ‣ Secure

Slide 6

Slide 6 text

Why did we choose Docker? ‣ Secure ‣ Reproducible

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

Migration ‣ Backup ‣ Install/Setup Docker ‣ Restore

Slide 12

Slide 12 text

TIL

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

Mail ‣ Postman SMTP

Slide 15

Slide 15 text

Security ‣ Goodbye fail2ban ‣ Hello Wordfence ‣ Hello 2FA

Slide 16

Slide 16 text

Summary ‣ WordPress on Docker is easy ‣ It requires some technical expertise ‣ Moving to Docker could be easier (but there’s an app for that)

Slide 17

Slide 17 text

santaana.co.uk

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

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