Created
July 4, 2022 05:00
-
-
Save ilmoralito/3ccc24241f542adc50ba2434b7a712a2 to your computer and use it in GitHub Desktop.
docker custom network mysql, phpmyadmin, wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE CUSTOM NETWROK | |
docker network create wordpress | |
# START MYSQL | |
docker run \ | |
--network wordpress \ | |
-e MYSQL_ROOT_PASSWORD=hotch \ | |
-e MYSQL_DATABASE=sample \ | |
-e MYSQL_USER=mario \ | |
-e MYSQL_PASSWORD=hotch \ | |
--name mysql57 \ | |
-d \ | |
mysql:5.7 | |
# START PHPMYADMIN | |
docker run --network wordpress --name phpmyadmin -p 8001:80 -e PMA_HOST=mysql57 -d phpmyadmin | |
# START WORDPRESS | |
docker run --network wordpress --name wordpress54 -p 8000:80 -d wordpress:5.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment