Less than 10MB image for debug purposes. You can use this image to create tens of containers while exploring Traefik or similar systems.
Docker Compose
services:
debug_container:
image: ghcr.io/riprsa/debug-container:latest
ports:
- "80:8081"
environment:
# PORT of inner HTTP server. Default value is ":80"
- PORT=:8081
# other Compose properties that you would like to useBy default, the container assumes its ID via HOSTNAME. However, you can override it. Read more
You can use an HTTP client to make a request to the container. It sends an HTML page for GET requests and JSON for other methods. JSON signtaure is:
{
"container_id": "your_container_id"
}