From f229066363ae4d2a5ee4c3716de3e077c9e1ded1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 29 Sep 2024 09:34:34 +0200 Subject: [PATCH] =?utf8?q?Schreibweise=20des=20CLI-Kommandos=20f=C3=BCr=20?= =?utf8?q?Docker-Compose=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.sh b/README.sh index 5e265f9..021bcbd 100755 --- a/README.sh +++ b/README.sh @@ -4,13 +4,13 @@ IMAGE=juplo/spring-consumer:1.1-SNAPSHOT if [ "$1" = "cleanup" ] then - docker-compose -f docker/docker-compose.yml down -t0 -v --remove-orphans + docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans mvn clean exit fi -docker-compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3 -docker-compose -f docker/docker-compose.yml rm -svf consumer +docker compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3 +docker compose -f docker/docker-compose.yml rm -svf consumer if [[ $(docker image ls -q $IMAGE) == "" || @@ -23,18 +23,18 @@ else docker image ls $IMAGE fi -docker-compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 +docker compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 -docker-compose -f docker/docker-compose.yml up -t0 -d cli +docker compose -f docker/docker-compose.yml up -t0 -d cli -docker-compose -f docker/docker-compose.yml up -d producer +docker compose -f docker/docker-compose.yml up -d producer -docker-compose -f docker/docker-compose.yml up -d consumer +docker compose -f docker/docker-compose.yml up -d consumer sleep 5 -docker-compose -f docker/docker-compose.yml stop consumer +docker compose -f docker/docker-compose.yml stop consumer -docker-compose -f docker/docker-compose.yml start consumer +docker compose -f docker/docker-compose.yml start consumer sleep 5 -docker-compose -f docker/docker-compose.yml stop producer consumer -docker-compose -f docker/docker-compose.yml logs consumer +docker compose -f docker/docker-compose.yml stop producer consumer +docker compose -f docker/docker-compose.yml logs consumer -- 2.20.1