|
| 1 | +services: |
| 2 | + db: |
| 3 | + # Reviewed tag: mysql:8.0 |
| 4 | + image: mysql:8.0@sha256:7dcddc01f13bab2f15cde676d44d01f61fc9f99fe7785e86196dfc07d358ae2b |
| 5 | + command: --default-authentication-plugin=mysql_native_password |
| 6 | + environment: |
| 7 | + MYSQL_DATABASE: wordpress |
| 8 | + MYSQL_USER: wordpress |
| 9 | + MYSQL_PASSWORD: wordpress |
| 10 | + MYSQL_ROOT_PASSWORD: root |
| 11 | + healthcheck: |
| 12 | + test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"] |
| 13 | + interval: 5s |
| 14 | + timeout: 5s |
| 15 | + retries: 20 |
| 16 | + |
| 17 | + wordpress: |
| 18 | + # Reviewed tag: wordpress:6.9-php8.2-apache |
| 19 | + image: wordpress:6.9-php8.2-apache@sha256:29a3af5db27d8c1716367575280bbf449cd231ced707daf8ce411895c042ed76 |
| 20 | + depends_on: |
| 21 | + db: |
| 22 | + condition: service_healthy |
| 23 | + environment: |
| 24 | + WORDPRESS_DB_HOST: db:3306 |
| 25 | + WORDPRESS_DB_NAME: wordpress |
| 26 | + WORDPRESS_DB_USER: wordpress |
| 27 | + WORDPRESS_DB_PASSWORD: wordpress |
| 28 | + volumes: |
| 29 | + - wordpress_data:/var/www/html |
| 30 | + - plugin_workspace:/var/www/html/wp-content/plugins/basicrum:ro |
| 31 | + |
| 32 | + wpcli: |
| 33 | + # Reviewed tag: wordpress:cli-2.12.0-php8.2 |
| 34 | + image: wordpress:cli-2.12.0-php8.2@sha256:b93ed9324c515901534955dfb528b7e1de158827815d7bb699d774b6bb6df8aa |
| 35 | + user: "33:33" |
| 36 | + depends_on: |
| 37 | + db: |
| 38 | + condition: service_healthy |
| 39 | + environment: |
| 40 | + WORDPRESS_DB_HOST: db:3306 |
| 41 | + WORDPRESS_DB_NAME: wordpress |
| 42 | + WORDPRESS_DB_USER: wordpress |
| 43 | + WORDPRESS_DB_PASSWORD: wordpress |
| 44 | + WP_URL: http://wordpress |
| 45 | + WP_TITLE: Basicrum WooCommerce E2E |
| 46 | + WP_ADMIN_USER: admin |
| 47 | + WP_ADMIN_PASSWORD: basicrum-e2e-password |
| 48 | + WP_ADMIN_EMAIL: admin@example.test |
| 49 | + HTTP_HOST: wordpress |
| 50 | + volumes: |
| 51 | + - wordpress_data:/var/www/html |
| 52 | + - plugin_workspace:/var/www/html/wp-content/plugins/basicrum:ro |
| 53 | + - ../tools:/tools:ro |
| 54 | + |
| 55 | + plugin: |
| 56 | + # Reviewed tag: composer:2 |
| 57 | + image: composer:2@sha256:5946476338742b200bb9ff88f8be56275ddae4b3949c72305cb0dbf10cfcb760 |
| 58 | + entrypoint: ["sh", "-c"] |
| 59 | + command: |
| 60 | + - >- |
| 61 | + rm -rf /workspace/vendor && |
| 62 | + tar -C /source --exclude='./vendor' -cf - . | tar -C /workspace -xf - |
| 63 | + volumes: |
| 64 | + - ../plugins/basicrum:/source:ro |
| 65 | + - plugin_workspace:/workspace |
| 66 | + |
| 67 | + composer: |
| 68 | + # Reviewed tag: composer:2 |
| 69 | + image: composer:2@sha256:5946476338742b200bb9ff88f8be56275ddae4b3949c72305cb0dbf10cfcb760 |
| 70 | + working_dir: /workspace |
| 71 | + volumes: |
| 72 | + - plugin_workspace:/workspace |
| 73 | + |
| 74 | + javascript: |
| 75 | + # Reviewed tag: mcr.microsoft.com/playwright:v1.61.1-noble |
| 76 | + image: mcr.microsoft.com/playwright:v1.61.1-noble@sha256:5b8f294aff9041b7191c34a4bab3ac270157a28774d4b0660e9743297b697e48 |
| 77 | + working_dir: /workspace |
| 78 | + environment: |
| 79 | + CI: "true" |
| 80 | + HOME: /tmp |
| 81 | + WOOCOMMERCE_E2E_BASE_URL: http://wordpress |
| 82 | + volumes: |
| 83 | + - ../:/workspace |
| 84 | + ipc: host |
| 85 | + |
| 86 | +volumes: |
| 87 | + wordpress_data: |
| 88 | + plugin_workspace: |
0 commit comments