This example demonstrates how to set up Caddy with Sablier and the Caddy Sablier Plugin.
- Docker and Docker Compose installed
- Port 8080 available on your machine
- Start the Docker Compose stack:
docker compose up- Open your browser and navigate to:
http://localhost:8080/
-
Wait a few seconds while Sablier starts the
mimiccontainer. Once ready, the page will automatically refresh and display:
- If you stop using the service for more than 1 minute (latest request received), the container will automatically shut down. Accessing the URL again will restart the container.
To stop and remove all containers:
docker compose downThe Caddyfile configuration sets up a route that uses the Sablier plugin to manage the mimic service on demand.
When a request arrives, Sablier checks if the containers in the mimic group are running, starts them if needed, and displays a dynamic waiting screen while they become healthy.

