Skip to content

Commit 4e9f359

Browse files
authored
Merge pull request #4 from trentonsnyder/master
adds docker compose instructions to readme
2 parents 224c2b5 + 36e3748 commit 4e9f359

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,28 @@ Create a file: `srh-config/tokens.json`
7272
}
7373
}
7474
```
75+
76+
### Docker Compose
77+
You'll want the above `tokens.json` file but use this as your connection string:
78+
```json
79+
"connection_string": "redis://redis:6379"
80+
```
81+
docker-compose.yaml
82+
```yaml
83+
version: '3'
84+
services:
85+
redis:
86+
image: redis
87+
ports:
88+
- '6379:6379'
89+
serverless-redis-http:
90+
ports:
91+
- '8079:80'
92+
image: hiett/serverless-redis-http:latest
93+
volumes:
94+
- ./path/to/tokens.json:/app/srh-config/tokens.json
95+
```
96+
7597
Notes:
7698
- Srh_id can be anything you want, as long as it's a string, and unique.
7799
- `max_connections` is the maximum number of connections for the pool.

0 commit comments

Comments
 (0)