Created
December 7, 2016 07:17
-
-
Save withinboredom/43b5c4e9d5764e046a097f472164a30e to your computer and use it in GitHub Desktop.
WordPress plugin
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
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 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
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