wordpress quick installation with docker on your own pc

Quick Installation:

  1. install docker
  2. start docker
  3. download the docker-compose.yml file
  4. open terminal and start wordpress: docker-compose -f path/to/docker-compose.yml up -d

Login wordpress:

  1. go to your local website:
    http://localhost
  2. login with
    username: connygu
    password: codehamster

Login phpmyadmin:

  1. go to your phpmyadmin:
    http://localhost:8080
    username: connygu
    (no password)

Your data path:

  1. wordpress path: ~/my_docker/docker_volume/wordpress
  2. mariadb path: ~/my_docker/docker_volume/mariadb
  3. phpmyadmin path: ~/my_docker/docker_voume/phpmyadmin

Stop wordpress:

  • docker-compose -f path/to/docker-compose.yml stop

Start wordpress:

  • method 1: docker-compose -f path/to/docker-compose.yml start 
  • method 2: docker-compose -f path/to/docker-compose.yml up -d

Remove wordpress:

  • stop wordpress: docker-compose -f path/to/docker-compose.yml stop
  • remove wordpress docker container: docker-compose -f path/to/docker-compose.yml rm
  • delete wordpress path:  ~/my_docker/docker_volume/wordpress
  • delete mariadb path:  ~/my_docker/docker_volume/mariadb
  • delete phpmyadmin path:  ~/my_docker/docker_voume/phpmyadmin

Reference:

4 Comments

  1. Hi, i’m trying to use your docker compose config, but I can´t load the wordpress admin page localhost:80, the phpMyAdmin works if I use the localhost:8080, I don´t know what is happening

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.