![]() ![]() */ add_action ( 'admin_menu', 'add_php_info_page' ) function add_php_info_page ( ) " since that's where our code lives inside our container Connect the current directory with /var/www/html/wp-content/plugins/wordpress-docker-xdebug directory inside the WordPress containerĪlso, notice how I'm instructing Docker to run WordPress in port 3000.Make the /var/www/html directory in the WordPress container persistent.Make the /var/lib/mysql directory in the DB container persistent. ![]() Create the user wordpress with password wordpress in the database.Give the DB root user the password root.For information on what the variables for MariaDB and WordPress mean, head over to the respective Dockerhub pages. Most of the magic on the docker-compose.yaml file happens is in the placement of environment variables. Ports : - 3000 : 80 volumes : wp-xdebug-data : wp-xdebug-html : networks : default : name : wp -xdebug -network :/var/www/html/wp -content/plugins/wordpress -docker -xdebug Volumes : - wp -xdebug -html :/var/www/html Volumes : - wp -xdebug -data :/var/lib/mysqlĮnvironment : WORDPRESS_DB_HOST : wp -xdebug -db Version : '3' services : db : image : mariadb ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |