Sign inSign up

slricci/wordpress

By slricci

•Updated about 9 years ago

Wordpress (from the official wordpress image) with added xdebug

Image
1

209

slricci/wordpress repository overview

⁠Services

ServiceLink:Port
Wordpress sitehttp://localhost:8080/⁠
XDebuglocalhost:9000
Phpmyadminhttp://localhost:10000/⁠
(If you're running docker inside virtual machine, you'll need to forward ports 8080:8080 and 10000:10000 through the virtual network interface).

Run with XDebug environment variable remote_host set to IP address of your local machine (where you run your IDE).


⁠Sample docker-compose file

wpdb:
  image: mariadb:latest
  ports:
    - "8081:3306"
  environment:
    MYSQL_ROOT_PASSWORD: changeMe

wp:
  image: slricci/wordpress:latest
  container_name: xd
  volumes:
    - ./wordpress:/var/www/html
  ports:
    - "8080:80"
  links:
    - wpdb:mysql
  environment:
    WORDPRESS_DB_PASSWORD: changeMe
    XDEBUG_CONFIG: remote_host=192.168.56.1
    
phpmyadmin:
  image: phpmyadmin/phpmyadmin:latest
  ports:
    - "10000:80"
  links:
    - wpdb:db


⁠PHP Debug plugin config for VSCode

{
	"name": "Listen for XDebug",
	"type": "php",
	"request": "launch",
	"port": 9000,
	"log": false,
	"serverSourceRoot": "/var/www/html",
	"localSourceRoot": "${workspaceRoot}/wordpress"
}

Tag summary

Content type

Image

Digest

Size

173.5 MB

Last updated

about 9 years ago

docker pull slricci/wordpress