11 lines
267 B
Bash
11 lines
267 B
Bash
#!/bin/sh
|
|
# Stop the worker and leave it stopped. The broker, API and volumes keep running.
|
|
set -eu
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
cd "$ROOT"
|
|
if [ -f .env ]; then
|
|
docker compose --env-file .env stop worker
|
|
else
|
|
docker compose stop worker
|
|
fi
|