Add Docker development environment

Multistage Dockerfile (WooCommerce download, wp-bootstrap npm build,
Composer deps, WordPress runtime), Compose stack with MariaDB, and
auto-setup entrypoint that installs WordPress and activates the theme
on first boot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 11:59:20 +01:00
parent 404f3a7264
commit 624de0cae6
10 changed files with 270 additions and 0 deletions

15
compose.override.yaml Normal file
View File

@@ -0,0 +1,15 @@
services:
db:
container_name: woocommerce-db
wordpress:
container_name: woocommerce
volumes:
- ../wp-bootstrap:/var/www/html/wp-content/themes/wp-bootstrap
- .:/var/www/html/wp-content/themes/wc-bootstrap
environment:
WORDPRESS_DEBUG: "1"
WORDPRESS_CONFIG_EXTRA: |
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
define('SCRIPT_DEBUG', true);