From 8c707cbe3a33034ab06a49ecf6f5d5e2fdb55c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sat, 6 Aug 2022 09:23:27 +0200 Subject: [PATCH] chore: upgrade example to Docker Compose v2 --- examples/with-docker-compose/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/with-docker-compose/README.md b/examples/with-docker-compose/README.md index a0c06dfa114d..d4e1458abd33 100644 --- a/examples/with-docker-compose/README.md +++ b/examples/with-docker-compose/README.md @@ -41,10 +41,10 @@ First, run the development server: docker network create my_network # Build dev using new BuildKit engine -COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.dev.yml build --parallel +docker compose -f docker-compose.dev.yml build # Up dev -docker-compose -f docker-compose.dev.yml up +docker compose -f docker-compose.dev.yml up ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. @@ -63,10 +63,10 @@ First, run the production server (Final image approximately 110 MB). docker network create my_network # Build prod using new BuildKit engine -COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.prod.yml build --parallel +docker compose -f docker-compose.prod.yml build # Up prod in detached mode -docker-compose -f docker-compose.prod.yml up -d +docker compose -f docker-compose.prod.yml up -d ``` Alternatively, run the production server without without multistage builds (Final image approximately 1 GB). @@ -77,10 +77,10 @@ Alternatively, run the production server without without multistage builds (Fina docker network create my_network # Build prod without multistage using new BuildKit engine -COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.prod-without-multistage.yml build --parallel +docker compose -f docker-compose.prod-without-multistage.yml build # Up prod without multistage in detached mode -docker-compose -f docker-compose.prod-without-multistage.yml up -d +docker compose -f docker-compose.prod-without-multistage.yml up -d ``` Open [http://localhost:3000](http://localhost:3000).