Skip to content

Commit

Permalink
feat: added redis in docker-compose (#3107)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
sahil9001 authored Nov 12, 2024
1 parent 36b978d commit d635301
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ services:
tty: true
volumes:
- ./.env:/home/node/app/.env
environment:
REDIS_ENABLED: true
REDIS_URL: "redis://redis:6379"

relay-ws:
container_name: hedera-json-rpc-relay-ws
image: "ghcr.io/hashgraph/hedera-json-rpc-relay:main"
command: start:ws
environment:
HEALTHCHECK_PORT: 8547
SUBSCRIPTIONS_ENABLED: true
REDIS_ENABLED: true
REDIS_URL: "redis://redis:6379"
restart: "unless-stopped"
ports:
- 8546:8546
Expand All @@ -25,3 +31,16 @@ services:
tty: true
volumes:
- ./.env:/home/node/app/.env

redis:
image: redis:latest
container_name: redis_cache
ports:
- '6379:6379'
volumes:
- redis-data:/data
restart: always

volumes:
redis-data:

0 comments on commit d635301

Please sign in to comment.