#!/bin/sh set -eu compose() { docker compose \ -f compose.yaml \ -f compose.test.yaml \ "$@" } cleanup() { compose down --remove-orphans } trap cleanup EXIT compose up \ --force-recreate \ --abort-on-container-exit \ --exit-code-from test