From cee1aa6ce08e3dba71ae66a412f3136d43e81707 Mon Sep 17 00:00:00 2001 From: Judith Roth Date: Tue, 26 May 2026 18:07:04 +0200 Subject: [PATCH] Avoid creation of unused containers --- bin/compose | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compose b/bin/compose index f5e4d56799f..33d64c9cd46 100755 --- a/bin/compose +++ b/bin/compose @@ -57,8 +57,8 @@ elif [[ "$@" = "run" ]]; then $DOCKER_COMPOSE -f $COMPOSE_FILE run --rm backend rm -f tmp/pids/server.pid # delete if necessary so new server can come up $DOCKER_COMPOSE -f $COMPOSE_FILE run --rm -p ${PORT:-3000}:3000 --name rails backend # run backend in TTY so you can debug using pry for instance elif [[ "$1" = "setup" ]]; then - $DOCKER_COMPOSE -f $COMPOSE_FILE run backend setup - yes no | $DOCKER_COMPOSE -f $COMPOSE_FILE run frontend npm install + $DOCKER_COMPOSE -f $COMPOSE_FILE run --rm backend setup + yes no | $DOCKER_COMPOSE -f $COMPOSE_FILE run --rm frontend npm install elif [[ "$1" = "restart" ]]; then $DOCKER_COMPOSE -f $COMPOSE_FILE restart "${@:2}" elif [[ "$1" = "reset" ]]; then