Skip to content

Commit

Permalink
Merge pull request #29 from jadesingh/readme-update-28
Browse files Browse the repository at this point in the history
Updated README with instructions on how to use Redis via Docker Compose #28

Closes #28.
  • Loading branch information
SuzeShardlow authored Oct 26, 2021
2 parents 8cdb8c2 + d59457b commit 114a842
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ To get started:
```
$ npm install
```
You'll also need to have the RedisTimeSeries module installed, which you can get by going through the following steps:
- Install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/)
- Check your Docker Compose version using ```docker-compose --version```. In order for our compose file to work, you need to have at least v1.27.0.
- Start up the Docker daemon.
- Run ```docker-compose up -d``` in the project directory. This command will give you Redis on localhost port 6379 with no password required, with the required RedisTimeSeries module installed. The container will persist Redis data to the ```redisdata``` folder.

You should see the following once the command has successfully run:

<img src=docker-compose.png width="450" height="200">

You'll also see the ```ru102js``` container running if you open up the Docker app.

If you get an error that says something like ```Version in "./docker-compose.yml" is unsupported```, you probably need to update your docker compose version to 1.27.0 or higher.

If you want to shut down the Redis container, you can run ```docker-compose down```.

# Configuration

Expand Down
Binary file added docker-compose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 114a842

Please sign in to comment.