woocommerce
Last commit date
assets
6 years ago
i18n
6 years ago
includes
6 years ago
packages
6 years ago
sample-data
7 years ago
src
6 years ago
templates
6 years ago
vendor
6 years ago
Dockerfile
6 years ago
babel.config.js
6 years ago
docker-compose.yaml
6 years ago
license.txt
6 years ago
readme.txt
6 years ago
uninstall.php
6 years ago
woocommerce.php
6 years ago
docker-compose.yaml
58 lines
| 1 | version: '3.7' |
| 2 | |
| 3 | services: |
| 4 | |
| 5 | db: |
| 6 | image: mariadb:10.4 |
| 7 | restart: on-failure |
| 8 | environment: |
| 9 | MYSQL_DATABASE: testdb |
| 10 | MYSQL_USER: wordpress |
| 11 | MYSQL_PASSWORD: wordpress |
| 12 | MYSQL_RANDOM_ROOT_PASSWORD: 'yes' |
| 13 | volumes: |
| 14 | - db:/var/lib/mysql |
| 15 | |
| 16 | wordpress-woocommerce-dev: |
| 17 | depends_on: |
| 18 | - db |
| 19 | build: |
| 20 | context: . |
| 21 | dockerfile: Dockerfile |
| 22 | ports: |
| 23 | - 8084:80 |
| 24 | restart: on-failure |
| 25 | environment: |
| 26 | WORDPRESS_DB_HOST: db |
| 27 | WORDPRESS_DB_NAME: testdb |
| 28 | WORDPRESS_DB_USER: wordpress |
| 29 | WORDPRESS_DB_PASSWORD: wordpress |
| 30 | WORDPRESS_TABLE_PREFIX: "wp_" |
| 31 | WORDPRESS_DEBUG: 1 |
| 32 | volumes: |
| 33 | - "./:/var/www/html/wp-content/plugins/woocommerce" |
| 34 | - wordpress:/var/www/html |
| 35 | |
| 36 | wordpress-cli: |
| 37 | depends_on: |
| 38 | - db |
| 39 | - wordpress-woocommerce-dev |
| 40 | image: wordpress:cli |
| 41 | restart: on-failure |
| 42 | user: xfs |
| 43 | command: > |
| 44 | /bin/sh -c ' |
| 45 | wp core install --url=http://localhost:8084 --title="WooCommerce Core E2E Test Suite" --admin_user=admin --admin_password=password --admin_email=admin@woocommercecoree2etestsuite.com --path=/var/www/html --skip-email; |
| 46 | wp plugin activate woocommerce; |
| 47 | wp theme install twentynineteen --activate; |
| 48 | wp user create customer customer@woocommercecoree2etestsuite.com --user_pass=password --role=customer --path=/var/www/html; |
| 49 | wp post create --post_type=page --post_status=publish --post_title='Ready' --post_content='E2E-tests.'; |
| 50 | ' |
| 51 | volumes: |
| 52 | - "./:/var/www/html/wp-content/plugins/woocommerce" |
| 53 | - wordpress:/var/www/html |
| 54 | |
| 55 | volumes: |
| 56 | db: |
| 57 | wordpress: |
| 58 |