-
-
Save delputnam/9e0025f1ceadfc0de8e680e73e4daa4e to your computer and use it in GitHub Desktop.
WordPress plugin
This file contains 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
version: '2' | |
services: | |
# MYSQL DB at lowest supported version for wordpress 4.6.1 | |
mysql: | |
image: mysql:5.6 | |
volumes: | |
- ./.tmp/mysql:/var/lib/mysql | |
environment: | |
MYSQL_USER: admin | |
MYSQL_ROOT_PASSWORD: pass | |
MYSQL_ALLOW_EMPTY_PASSWORD: 'true' | |
ports: | |
- '3307:3306' | |
wordpress: | |
build: . | |
volumes: | |
- ./.tmp/wordpress:/var/www/html | |
- ./:/var/www/html/wp-content/plugins/trial/ | |
environment: | |
WORDPRESS_DB_PASSWORD: pass | |
XDEBUG_CONFIG: remote_host=10.254.254.254 | |
ports: | |
- '8080:80' |
This file contains 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
FROM wordpress:4.6.1-php5.6-apache | |
RUN yes | pecl install xdebug \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.idekey=bonkers" >> /usr/local/etc/php/conf.d/xdebug.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment