diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-26 16:41:48 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-26 16:47:14 -0300 |
| commit | 535dbda6b48171f8115b455e54790de94d97d42a (patch) | |
| tree | 5c0410011e61a883bdf063ee612875a637fb1d22 /test/compose.yml | |
| download | woocommerce-29190494c82855f0f0ce7fb16f831c8f971022c5.tar.gz | |
Initial importv0.1.0
Diffstat (limited to 'test/compose.yml')
| -rw-r--r-- | test/compose.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/test/compose.yml b/test/compose.yml new file mode 100644 index 0000000..ff0cbdd --- /dev/null +++ b/test/compose.yml @@ -0,0 +1,61 @@ +name: cepis-woocommerce-test + +services: + db: + image: mysql:8 + environment: + MYSQL_ROOT_PASSWORD: wordpress + MYSQL_DATABASE: wordpress + MYSQL_USER: wordpress + MYSQL_PASSWORD: wordpress + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uwordpress", "-pwordpress"] + interval: 3s + timeout: 5s + retries: 30 + + wordpress: + image: wordpress:latest + depends_on: + db: + condition: service_healthy + ports: + - "8090:80" + extra_hosts: + - "fakecep:host-gateway" + environment: + WORDPRESS_DB_HOST: db:3306 + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: wordpress + WORDPRESS_DB_NAME: wordpress + WORDPRESS_DEBUG: "1" + WORDPRESS_CONFIG_EXTRA: | + define( 'WP_DEBUG', true ); + define( 'WP_DEBUG_LOG', true ); + define( 'WP_DEBUG_DISPLAY', false ); + define( 'SCRIPT_DEBUG', true ); + define( 'DISABLE_WP_CRON', true ); + volumes: + - wp:/var/www/html + - ..:/var/www/html/wp-content/plugins/cepis-woocommerce + + cli: + image: wordpress:cli + depends_on: + - wordpress + user: "33:33" + extra_hosts: + - "fakecep:host-gateway" + environment: + WORDPRESS_DB_HOST: db:3306 + WORDPRESS_DB_USER: wordpress + WORDPRESS_DB_PASSWORD: wordpress + WORDPRESS_DB_NAME: wordpress + WP_CLI_CACHE_DIR: /tmp/wp-cli-cache + volumes: + - wp:/var/www/html + - ..:/var/www/html/wp-content/plugins/cepis-woocommerce + entrypoint: ["tail", "-f", "/dev/null"] + +volumes: + wp: |