From 36e374820a604e8679965baafc48903dab53c9df Mon Sep 17 00:00:00 2001 From: Trenton <17258002+trentonsnyder@users.noreply.github.com> Date: Wed, 5 Oct 2022 18:44:37 -0600 Subject: [PATCH] adds docker compose instructions to readme --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 5a476ef..f803d6d 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,28 @@ Create a file: `srh-config/tokens.json` } } ``` + +### Docker Compose +You'll want the above `tokens.json` file but use this as your connection string: +```json +"connection_string": "redis://redis:6379" +``` +docker-compose.yaml +```yaml +version: '3' +services: + redis: + image: redis + ports: + - '6379:6379' + serverless-redis-http: + ports: + - '8079:80' + image: hiett/serverless-redis-http:latest + volumes: + - ./path/to/tokens.json:/app/srh-config/tokens.json +``` + Notes: - Srh_id can be anything you want, as long as it's a string, and unique. - `max_connections` is the maximum number of connections for the pool.