Skip to content

Commit

Permalink
fix: fixed redis configuration to use shared cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil9001 committed Oct 19, 2024
1 parent 7796aca commit 349acb1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 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,15 @@ 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 349acb1

Please sign in to comment.