Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable communication between webserver and the TENDERMINT_URL #240

Merged
merged 7 commits into from
Feb 13, 2025
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Follow these instructions to set up the project locally. The steps below will gu

It is strongly recommended to change the default username and password for your PostgreSQL database for security purposes. Update these credentials in both the `.env` file and the `docker-compose.yml` file to reflect the changes.

## 🐳 Installation with Docker
## 🐳 Docker Deployment

### Prerequisites

Expand All @@ -81,8 +81,9 @@ apt-get install -y curl apt-transport-https ca-certificates software-properties-
Ensure you have the latest repository cloned to maintain compatibility with other Namada interfaces. Use the following commands to clone the repository and navigate into its directory.

```sh
git clone https://github.com/anoma/namada-indexer.git
cd namada-indexer
# Clone this repository, copy the URL from the Code button above.
git clone <copied-url>
cd <repository-name>
```

Create the `.env` file in the root of the project. You can use the `.env.sample` file as a reference.
Expand All @@ -107,7 +108,7 @@ just docker-up
just docker-up-d
```

## Installation without Docker
## 🖥️ Self-Hosted Deployment

If you prefer not to use Docker, you can follow the instructions below to set up and run the services manually.

Expand Down Expand Up @@ -136,4 +137,4 @@ After populating the database, you can run the webserver to access the data via

```sh
apt-get install -y postgresql-client
```
```
15 changes: 8 additions & 7 deletions docker-compose.yml
maxpower-01 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include:
services:
chain:
<<: *defaults
image: namada/chain-indexer
image: namada-indexer/chain
command: "./service \
--tendermint-url ${TENDERMINT_URL} \
--database-url ${DATABASE_URL} \
Expand All @@ -40,7 +40,7 @@ services:

governance:
<<: *defaults
image: namada/governance-indexer
image: namada-indexer/governance
build:
<<: *build
args:
Expand All @@ -49,7 +49,7 @@ services:

pos:
<<: *defaults
image: namada/pos-indexer
image: namada-indexer/pos
build:
<<: *build
args:
Expand All @@ -58,7 +58,7 @@ services:

rewards:
<<: *defaults
image: namada/rewards-indexer
image: namada-indexer/rewards
build:
<<: *build
args:
Expand All @@ -67,7 +67,7 @@ services:

parameters:
<<: *defaults
image: namada/parameters-indexer
image: namada-indexer/parameters
build:
<<: *build
args:
Expand All @@ -76,15 +76,16 @@ services:

transactions:
<<: *defaults
image: namada/transaction-indexer
image: namada-indexer/transaction
build:
<<: *build
args:
<<: *build-args
PACKAGE: transactions

webserver:
image: namada/webserver-indexer
<<: *defaults
image: namada-indexer/webserver
build:
context: .
dockerfile: Dockerfile
Expand Down
Loading