From 95c719506f5c00eb563322d54d17401e07c24f5d Mon Sep 17 00:00:00 2001 From: ericghara Date: Tue, 2 May 2023 13:43:39 -0700 Subject: [PATCH] updated README with compose v2 commands * README.md: updated compose cli commands --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 017b5bc..37f28cc 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,11 @@ Running Redis Stack with Docker We've provided a Docker Compose file as part of this repo, so to start Redis Stack, use the following command: ```bash -docker-compose up -d +docker compose up -d ``` +*Note:* in environments using older versions of Docker Compose (v1.x), use the ```docker-compose up -d``` command instead. + This will start a Redis Stack container with Redis exposed on localhost port 6379 with no password. You should see output similar to the following: ``` @@ -53,7 +55,7 @@ you are connected to Redis. Type `quit` to exit the Redis CLI. When you are finished working with Redis, shut down the server like so: ```bash -docker-compose down +docker compose down ``` Redis saves your data in an append only file in the `redisdata` folder, and will re-load it next time you start the container.