Skip to content

Instantly share code, notes, and snippets.

@withinboredom
Created December 7, 2016 07:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save withinboredom/43b5c4e9d5764e046a097f472164a30e to your computer and use it in GitHub Desktop.
Save withinboredom/43b5c4e9d5764e046a097f472164a30e to your computer and use it in GitHub Desktop.
WordPress plugin
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'
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