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

19
docker/.env-dist Normal file
View File

@@ -0,0 +1,19 @@
# Database
MYSQL_ROOT_PASSWORD=rootpass
MYSQL_DATABASE=wordpress
MYSQL_USER=wordpress
MYSQL_PASSWORD=wordpress
# WordPress
WP_PORT=8080
# Auto-setup (runs on first boot, set to 0 to disable)
WP_AUTO_SETUP=1
WP_URL=http://localhost:8080
WP_TITLE=WC Bootstrap Dev
WP_ADMIN_USER=admin
WP_ADMIN_PASSWORD=admin
WP_ADMIN_EMAIL=admin@example.com
# Build args (used during `docker compose build`)
# WOOCOMMERCE_VERSION=latest