diff --git a/z1/docker-compose.yaml b/z1/docker-compose.yaml index 18b5dae..445a511 100644 --- a/z1/docker-compose.yaml +++ b/z1/docker-compose.yaml @@ -1,5 +1,3 @@ -version: '3.8' - services: db: image: postgres:17-alpine diff --git a/z1/prepare-app.sh b/z1/prepare-app.sh index 32de8d8..ec8a30d 100755 --- a/z1/prepare-app.sh +++ b/z1/prepare-app.sh @@ -1,4 +1,4 @@ #!/bin/bash echo "Preparing app..." -docker-compose build +docker compose build echo "App is prepared." diff --git a/z1/remove-app.sh b/z1/remove-app.sh index 4e4ead9..8e24589 100755 --- a/z1/remove-app.sh +++ b/z1/remove-app.sh @@ -1,3 +1,3 @@ #!/bin/bash echo "Removed app." -docker-compose down -v --rmi local +docker compose down -v --rmi local diff --git a/z1/start-app.sh b/z1/start-app.sh index 9c12108..63124cc 100755 --- a/z1/start-app.sh +++ b/z1/start-app.sh @@ -1,4 +1,4 @@ #!/bin/bash echo "Running app ..." -docker-compose up -d +docker compose up -d echo "The app is available at http://localhost:5000" diff --git a/z1/stop-app.sh b/z1/stop-app.sh index a92a7ee..0fdad68 100755 --- a/z1/stop-app.sh +++ b/z1/stop-app.sh @@ -1,3 +1,3 @@ #!/bin/bash echo "Stopping app..." -docker-compose stop +docker compose stop