comicfn2dict/bin/docker-compose-exit.sh
2024-02-23 18:29:45 -08:00

7 lines
226 B
Bash
Executable File

#!/bin/bash
# Run a docker compose service and return its exit code
set -euo pipefail
SERVICE=$1
# docker compose without the dash doesn't have the exit-code-from param
docker compose up --exit-code-from "$SERVICE" "$SERVICE"