You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A formatted version is available for use with this demo at:
95
+
94
96
95
97
## Running the App with docker-compose
96
98
Before running the app, install [Docker Desktop](https://www.docker.com/products/docker-desktop/).
97
99
98
-
#### Using Redis Cloud (recommended)
100
+
#### Using Redis Cloud
99
101
100
102
1.[Get your Redis Cloud Database](https://app.redislabs.com/) (if needed).
101
103
102
-
2. Export Redis Endpoint Environment Variables:
103
-
```bash
104
-
$ export REDIS_HOST=your-redis-host
105
-
$ export REDIS_PORT=your-redis-port
106
-
$ export REDIS_PASSOWRD=your-redis-password
107
-
```
104
+
2.`cp template.env .env` and update with cloud values
105
+
106
+
```bash
107
+
REDIS_HOST=your-redis-host
108
+
REDIS_PORT=your-redis-port
109
+
REDIS_PASSOWRD=your-redis-password
110
+
```
108
111
109
112
3. Run the App:
110
113
```bash
@@ -113,11 +116,17 @@ Before running the app, install [Docker Desktop](https://www.docker.com/products
113
116
114
117
> The benefit of this approach is that the db will persist beyond application runs. So you can make updates and re run the app without having to provision the dataset or create another search index.
115
118
116
-
#### Using Redis Docker
119
+
#### Running the app locally using docker
120
+
121
+
1. `cp template.env .env`
122
+
123
+
2. Run compose command
117
124
```bash
118
125
$ docker compose -f docker-local-redis.yml up
119
126
```
120
127
128
+
Note: you can add `--build` and `--force-recreate`if caching old images.
0 commit comments