docker-compose.yml
version: "3.1"
services:
mysql:
image: mysql:5.7
ports:
- 3308:3306
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress_test
wordpress_phpunit:
image: pojome/phpunit-local
restart: on-failure
environment:
PHPUNIT_DB_HOST: mysql
volumes:
- "/tmp/woocommerce:/var/www/html/wp-content/plugins/woocommerce"
- .:/app
- tmp:/tmp
depends_on:
- mysql
volumes:
tmp: