woocommerce/plugins/woocommerce-admin/docker/wc-admin-php-test-suite/docker-compose.yml

33 lines
751 B
YAML

version: "3"
services:
phpunit:
build: "."
image: wc-admin-php-test-suite-phpunit:1.1.0
volumes:
- "test-suite:/tmp"
- "../../:/app"
environment:
- WC_CORE_DIR=/tmp/wordpress/wp-content/plugins/woocommerce
- WC_VERSION=${WC_VERSION:-4.5.0}
- DB_USER=root
- DB_PASS=password
- DB_NAME=wordpress_test
- DB_HOST=phpunit-db
depends_on:
- phpunit-db
phpunit-db:
image: mysql:5.7
hostname: "phpunit-db"
environment:
MYSQL_DATABASE: "wordpress_test"
MYSQL_ROOT_PASSWORD: "password"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", '-u', 'root', '-ppassword' ]
interval: 10s
timeout: 5s
volumes:
test-suite: {}