GitHunt
ST

stagerightlabs/watchfinder

A docker container for monitoring PHP file changes an automatically running Laravel Wayfinder.

Watch Finder

A docker container for monitoring PHP file changes an automatically running Laravel Wayfinder.

Using this container service will allow you to take advantage of the benefits of Wayfinder without needing to have node installed in your PHP container.

Usage

Add this container as a separate service in your docker compose.yaml file.

wayfinder:
    build:
        context: stagerightlabs/watchfinder
    environment:
        - WATCH_CMD=php artisan wayfinder:generate --with-form
    volumes:
        - ./:/var/www/html:cached

The WATCH_CMD variable is the artisan command you want to run when file changes are detected.

Notes

With this service in place in your local docker environment you will no longer need to use the Vite Wayfinder plugin; you can remove it completely from your vite config file.

Languages

PHP79.5%Shell12.0%Dockerfile8.5%

Contributors

Created December 26, 2025
Updated December 29, 2025