Skip to content

Commit

Permalink
Don't hardcode db name, which should be in connection string (#958)
Browse files Browse the repository at this point in the history
zfy0701 authored Jan 13, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7148318 commit 840783e
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/compose/movement-indexer/docker-compose.indexer.yml
Original file line number Diff line number Diff line change
@@ -53,10 +53,10 @@ services:
environment:
HASURA_GRAPHQL_SERVER_PORT: 8085
## postgres database to store Hasura metadata
HASURA_GRAPHQL_METADATA_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}/postgres
HASURA_GRAPHQL_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}/postgres
HASURA_GRAPHQL_METADATA_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}
HASURA_GRAPHQL_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}
## this env var can be used to add the above postgres database to Hasura as a data source. this can be removed/updated based on your needs
PG_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}/postgres
PG_DATABASE_URL: ${INDEXER_PROCESSOR_POSTGRES_CONNECTION_STRING}
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## enable debugging mode. It is recommended to disable this in production
2 changes: 1 addition & 1 deletion networks/movement/indexer/src/main.rs
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ fn build_processor_conf(
let indexer_config_content = format!(
"processor_config:
type: {}
postgres_connection_string: {}/postgres
postgres_connection_string: {}
indexer_grpc_data_service_address: {}
indexer_grpc_http2_ping_interval_in_secs: {}
indexer_grpc_http2_ping_timeout_in_secs: {}

0 comments on commit 840783e

Please sign in to comment.