WordPress running on Docker, separate DB, NGINX and PHP7-FPM containers
-
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
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"