From 643b00263e57d8680ed8dd91da343dce455f73f7 Mon Sep 17 00:00:00 2001 From: "mohammadfaisalkhatri@gmail.com" Date: Thu, 28 Nov 2024 23:25:59 +0300 Subject: [PATCH] updated command in docker compose file comments and updated docker compose command in the maven workflow file --- .github/workflows/maven.yml | 4 ++-- docker-compose-restfulbooker.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1c705b5..31ddfaa 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,13 +24,13 @@ jobs: cache: maven - name: Start restful booker service - run: docker-compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml up -d + run: docker compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml up -d - name: Build with Maven and run tests run: mvn clean install - name: Stop restful booker service - run: docker-compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml down --remove-orphans + run: docker compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml down --remove-orphans - name: Test Report uses: dorny/test-reporter@v1 diff --git a/docker-compose-restfulbooker.yml b/docker-compose-restfulbooker.yml index e86efa0..e46e9b4 100644 --- a/docker-compose-restfulbooker.yml +++ b/docker-compose-restfulbooker.yml @@ -1,6 +1,6 @@ -# To execute this docker-compose yml file use `docker-compose -f docker-compose-restfulbooker.yml up -d` +# To execute this docker-compose yml file use `docker compose -f docker-compose-restfulbooker.yml up -d` # Add the `-d` flag at the end for detached execution -# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-restfulbooker.yml down` +# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-restfulbooker.yml down` version: "3" services: restful-booker: