Trenton commited on
Commit
36e3748
1 Parent(s): 224c2b5

adds docker compose instructions to readme

Browse files
Files changed (1) hide show
  1. README.md +22 -0
README.md CHANGED
@@ -72,6 +72,28 @@ Create a file: `srh-config/tokens.json`
72
  }
73
  }
74
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  Notes:
76
  - Srh_id can be anything you want, as long as it's a string, and unique.
77
  - `max_connections` is the maximum number of connections for the pool.
 
72
  }
73
  }
74
  ```
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
+
97
  Notes:
98
  - Srh_id can be anything you want, as long as it's a string, and unique.
99
  - `max_connections` is the maximum number of connections for the pool.