7 lines
226 B
Bash
Executable File
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"
|