Wordpress (from the official wordpress image) with added xdebug
209
| Service | Link:Port |
|---|---|
| Wordpress site | http://localhost:8080/ |
| XDebug | localhost:9000 |
| Phpmyadmin | http://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).
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
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": false,
"serverSourceRoot": "/var/www/html",
"localSourceRoot": "${workspaceRoot}/wordpress"
}
Content type
Image
Digest
Size
173.5 MB
Last updated
about 9 years ago
docker pull slricci/wordpress