Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 864 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 864 Bytes

WordPress Docker

WordPress running on Docker, separate DB, NGINX and PHP7-FPM containers

Installation

  • Clone latest WordPress Docker: git clone https://github.com/easypath/wordpress-docker.git <domain_name> && rm -rf <domain_name>/.git

  • Make install script executable: chmod +x wordpress-docker.sh

  • Optional: change database details in script

  • Optional: edit docker-compose.yaml, update "nginx" HTTP port

  • Run script: ./wordpress-docker.sh

  • Navigate to http://localhost:8080, complete initial WordPress setup

Adding PhpMyAdmin

Connecting phpMyAdmin Docker image to DB container:

  • Get network by running docker network ls
  • docker run --name phpmyadmin -d --network=<network> -p 8095:80 phpmyadmin/phpmyadmin
  • By default, image assumes DB container is named "db"