Skip to content

Commit

Permalink
feat: added redis dependency to docker compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Jun 10, 2024
1 parent a27b364 commit 3ddaf83
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions examples/postgres-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '3.7'

x-common-variables: &common-variables
CHAIN_ID: mainnet
REDIS_URL: redis://redis:6379/
DATABASE_URL: postgres:5432
DATABASE_USER: postgres
DATABASE_PASSWORD: password
Expand Down Expand Up @@ -29,6 +30,7 @@ services:
- 8000:8000
depends_on:
- postgres
- redis
restart: on-failure

state-indexer:
Expand All @@ -45,6 +47,7 @@ services:
- 8080:8080
depends_on:
- postgres
- redis
restart: on-failure

tx-indexer:
Expand All @@ -61,6 +64,7 @@ services:
- 8081:8081
depends_on:
- postgres
- redis
restart: on-failure

postgres:
Expand All @@ -72,3 +76,9 @@ services:
POSTGRES_PASSWORD: password
ports:
- 5432:5432

redis:
image: redis/redis-stack-server:latest
restart: always
ports:
- 6379:6379
12 changes: 11 additions & 1 deletion examples/rightsizing-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: '3.7'

x-common-variables: &common-variables
CHAIN_ID: mainnet
REDIS_URL: redis://redis:6379/
DATABASE_URL: postgres:5432
DATABASE_USER: postgres
DATABASE_PASSWORD: password
Expand Down Expand Up @@ -31,6 +32,7 @@ services:
- 8000:8000
depends_on:
- postgres
- redis

state-indexer:
build:
Expand All @@ -46,6 +48,7 @@ services:
- 8080:8080
depends_on:
- postgres
- redis
restart: on-failure

tx-indexer:
Expand All @@ -57,12 +60,12 @@ services:
environment:
<<: *common-variables
TX_INDEXER_ID: tx-indexer-local

command: [ "from-interruption" ]
ports:
- 8081:8081
depends_on:
- postgres
- redis
restart: on-failure

postgres:
Expand All @@ -74,3 +77,10 @@ services:
POSTGRES_PASSWORD: password
ports:
- 5432:5432

redis:
image: redis/redis-stack-server:latest
container_name: redis-stack-server
ports:
- 6379:6379
restart: always

0 comments on commit 3ddaf83

Please sign in to comment.