comicfn2dict/bin/docker-compose-exit.sh

7 lines
226 B
Bash
Raw Normal View History

2024-02-23 18:29:45 -08:00
#!/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"