Frakenstein a WordPress Stack from Docker Compose

Goal:

  • Only fitting to create WordPress site w/MySQL using (Queue dramatic music for effects)…
    • SWARRRRRM! from a compose file to deploy a stack

Lessons Learned:

  • Setup a swarrrrrrm!
  • Compose the file w/the pertinent SQL, volume, network, & WordPress information
  • Stack deploy the wordpress blog
  • Set up WordPress!

Swarm setup:

  • SSH again into node manager & create the swarm join connection token for the worker
  • Once the docker swarm join –token command is created, copy-pasta into your worker node
  • To view your nodes, run the command below
    • docker node ls

Compose file:

WordPress blog:

  • To put your Docker compose stack to the test, run the following command:
    • docker stack deploy –compose-file docker-compose.yml wp
  • To view your service/stack, run the commands below
    • docker stack ls
    • docker service ls

WordPress setup:

  • Taaaaah-daaaaahhhhh!!

Leave a comment