Skip to content

Commit d635301

Browse files
authored
feat: added redis in docker-compose (#3107)
* feat: added in docker-compose.yml Signed-off-by: Sahil Silare <[email protected]> * fix: fixed blank line Signed-off-by: Sahil Silare <[email protected]> * fix: fixed blank line Signed-off-by: Sahil Silare <[email protected]> --------- Signed-off-by: Sahil Silare <[email protected]>
1 parent 36b978d commit d635301

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ services:
1010
tty: true
1111
volumes:
1212
- ./.env:/home/node/app/.env
13+
environment:
14+
REDIS_ENABLED: true
15+
REDIS_URL: "redis://redis:6379"
16+
1317
relay-ws:
1418
container_name: hedera-json-rpc-relay-ws
1519
image: "ghcr.io/hashgraph/hedera-json-rpc-relay:main"
1620
command: start:ws
1721
environment:
1822
HEALTHCHECK_PORT: 8547
1923
SUBSCRIPTIONS_ENABLED: true
24+
REDIS_ENABLED: true
25+
REDIS_URL: "redis://redis:6379"
2026
restart: "unless-stopped"
2127
ports:
2228
- 8546:8546
@@ -25,3 +31,16 @@ services:
2531
tty: true
2632
volumes:
2733
- ./.env:/home/node/app/.env
34+
35+
redis:
36+
image: redis:latest
37+
container_name: redis_cache
38+
ports:
39+
- '6379:6379'
40+
volumes:
41+
- redis-data:/data
42+
restart: always
43+
44+
volumes:
45+
redis-data:
46+

0 commit comments

Comments
 (0)