Skip to content

Commit

Permalink
update envs compose (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored May 10, 2024
1 parent 298e5ac commit 0a20d41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ MONGO_DB_NAME=
MONGO_DB_API_PORT=
API_PORT=
LOG_LEVEL=
BEACON_NODE_URL=
BEACON_NODE_URL_MAINNET=
BEACON_NODE_URL_HOLESKY=
BEACON_NODE_URL_GNOSIS=
BEACON_NODE_URL_LUKSO=
BYPASS_VALIDATORS_FILTERING=
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ services:
API_PORT: "${API_PORT}"
LOG_LEVEL: "${LOG_LEVEL}"
BYPASS_VALIDATORS_FILTERING: "${BYPASS_VALIDATORS_FILTERING}"
BEACON_NODE_URL: ${BEACON_NODE_URL}
BEACON_NODE_URL_MAINNET: ${BEACON_NODE_URL_MAINNET}
BEACON_NODE_URL_HOLESKY: ${BEACON_NODE_URL_HOLESKY}
BEACON_NODE_URL_LUKSO: ${BEACON_NODE_URL_LUKSO}
BEACON_NODE_URL_GNOSIS: ${BEACON_NODE_URL_GNOSIS}

depends_on:
- mongo
container_name: listener
Expand Down
5 changes: 0 additions & 5 deletions listener/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ func LoadConfig() (*Config, error) {
}
bypassValidatorsFiltering := strings.ToLower(bypassValidatorsFilteringStr) == "true"

beaconNodeURL := os.Getenv("BEACON_NODE_URL")
if beaconNodeURL == "" {
logger.Fatal("BEACON_NODE_URL is not set")
}

// beacon node urls per network

beaconMainnet := os.Getenv("BEACON_NODE_URL_MAINNET")
Expand Down

0 comments on commit 0a20d41

Please sign in to comment.