Forked from alexishida/docker+wordpress+mariadb+phpmyadmin.txt
Last active
February 27, 2019 14:15
-
-
Save oliveira-andre/b587264f59d01c85ca6c325d27359c3a to your computer and use it in GitHub Desktop.
Docker config wordpress mariadb phpmyadmin
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
sudo docker run -d \ | |
--name=mariadb \ | |
--restart=always \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-u root \ | |
-e MYSQL_ROOT_PASSWORD=root \ | |
-v /storage/mariadb:/var/lib/mysql \ | |
-p 3306:3306 \ | |
mariadb:latest | |
sudo docker run -d \ | |
--restart=always \ | |
--name=myadmin \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
--link mariadb:db \ | |
-p 9595:80 \ | |
phpmyadmin/phpmyadmin | |
sudo docker run -d \ | |
--restart=always \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
--name=wordpress \ | |
-v /storage/wordpress:/var/www/html \ | |
-e WORDPRESS_DB_NAME="nome do banco" \ | |
-e WORDPRESS_DB_USER=root \ | |
-e WORDPRESS_DB_PASSWORD=root \ | |
--link mariadb:mysql \ | |
-p 80:80 \ | |
wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment