Replaces the bare-metal `composer run dev` workflow with a fully containerized 9-service stack orchestrated by docker compose. Single command brings up the full app — three subdomains (marketing / account / admin) reachable via Traefik with TLS, MariaDB + Valkey + Mailpit + Vite HMR + Horizon + scheduler all wired in. Components: - docker-compose.yml: traefik, app (php-fpm), web (nginx), mariadb, valkey, mailpit, vite, horizon, scheduler. - docker/: Dockerfiles, nginx config, entrypoint scripts. - Makefile: convenience targets (up / down / logs / shell / migrate / seed / test / pint / etc). - .env.docker.example: template for Docker-stack environment vars (separate from website/.env so bare-metal devs aren't disrupted). - website/vite.config.ts: server.host / origin / hmr / cors hooks driven by VITE_HOST / VITE_ORIGIN / VITE_HMR_HOST so the same config serves both bare-metal and Docker. - website/bootstrap/app.php: redirectGuestsTo() now uses request()->getScheme() so http: dev hosts don't get force-https redirects. - composer.json: drops laravel/sail (replaced by this stack). - docs/superpowers/specs/2026-04-25-docker-compose-dev-environment-design.md: full design spec. Bare-metal `composer run dev` workflow stays usable for anyone who prefers it — Docker stack reads .env.docker, doesn't fight website/.env. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
581 B
Plaintext
24 lines
581 B
Plaintext
; ==============================================================================
|
|
; PHP-FPM pool — DEV configuration
|
|
; ==============================================================================
|
|
|
|
[www]
|
|
user = www-data
|
|
group = www-data
|
|
|
|
listen = 9000
|
|
listen.backlog = 511
|
|
|
|
pm = dynamic
|
|
pm.max_children = 25
|
|
pm.start_servers = 4
|
|
pm.min_spare_servers = 2
|
|
pm.max_spare_servers = 8
|
|
pm.max_requests = 1000
|
|
|
|
; Surface FPM logs to stdout/stderr so `docker compose logs app` shows them
|
|
access.log = /proc/self/fd/2
|
|
catch_workers_output = yes
|
|
decorate_workers_output = no
|
|
clear_env = no
|