diff options
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: |