From ec07d12f86a2bfd9e9c3970291c9549f91ffdf77 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 11 Jun 2023 09:40:54 +0200 Subject: [PATCH] Docker-Setup in das Unterverzeichnis `docker` verschoben --- README.sh | 22 +++++++++---------- .../docker-compose.yml | 0 2 files changed, 11 insertions(+), 11 deletions(-) rename docker-compose.yml => docker/docker-compose.yml (100%) diff --git a/README.sh b/README.sh index 219a478..bee5cfd 100755 --- a/README.sh +++ b/README.sh @@ -4,13 +4,13 @@ IMAGE=juplo/simple-consumer:1.0-SNAPSHOT if [ "$1" = "cleanup" ] then - docker-compose down -v --remove-orphans + docker-compose -f docker/docker-compose.yml down -v --remove-orphans mvn clean exit fi -docker-compose up -d kafka-1 kafka-2 kafka-3 cli -docker-compose rm -svf consumer +docker-compose -f docker/docker-compose.yml up -d kafka-1 kafka-2 kafka-3 cli +docker-compose -f docker/docker-compose.yml rm -svf consumer if [[ $(docker image ls -q $IMAGE) == "" || @@ -23,16 +23,16 @@ else docker image ls $IMAGE fi -docker-compose up setup -docker-compose up -d producer -docker-compose ps +docker-compose -f docker/docker-compose.yml up setup +docker-compose -f docker/docker-compose.yml up -d producer +docker-compose -f docker/docker-compose.yml ps -docker-compose up -d consumer +docker-compose -f docker/docker-compose.yml up -d consumer sleep 5 -docker-compose stop consumer +docker-compose -f docker/docker-compose.yml stop consumer -docker-compose start consumer +docker-compose -f docker/docker-compose.yml start consumer sleep 5 -docker-compose stop producer consumer -docker-compose logs consumer +docker-compose -f docker/docker-compose.yml stop producer consumer +docker-compose -f docker/docker-compose.yml logs consumer diff --git a/docker-compose.yml b/docker/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to docker/docker-compose.yml -- 2.20.1