From 35bb486557d1364d2d22edef4fdf3a68c0cd8a31 Mon Sep 17 00:00:00 2001 From: leboiko Date: Wed, 22 Jan 2025 16:01:51 -0300 Subject: [PATCH] Small fixes --- .../graphql/overlays/prod-base-mainnet/secret-provider.yaml | 4 ++++ docker-compose.yml | 2 +- indexer-and-cache-migrations/Dockerfile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/devops/aws/services/graphql/overlays/prod-base-mainnet/secret-provider.yaml b/devops/aws/services/graphql/overlays/prod-base-mainnet/secret-provider.yaml index 4f1acf9..80d080e 100644 --- a/devops/aws/services/graphql/overlays/prod-base-mainnet/secret-provider.yaml +++ b/devops/aws/services/graphql/overlays/prod-base-mainnet/secret-provider.yaml @@ -21,6 +21,8 @@ spec: objectAlias: "HASURA_GRAPHQL_METADATA_DATABASE_URL" - path: "DATABASE_URL" objectAlias: "DATABASE_URL" + - path: "INDEXER_DATABASE_URL" + objectAlias: "INDEXER_DATABASE_URL" secretObjects: - secretName: "prod-mainnet-sepolia-hasura-aws-secrets" # The name of the Kubernetes secret to create type: Opaque @@ -35,3 +37,5 @@ spec: key: "HASURA_GRAPHQL_METADATA_DATABASE_URL" - objectName: "DATABASE_URL" key: "DATABASE_URL" + - objectName: "INDEXER_DATABASE_URL" + key: "INDEXER_DATABASE_URL" diff --git a/docker-compose.yml b/docker-compose.yml index 4330de4..dac288c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -319,7 +319,7 @@ services: container_name: indexer-migrations image: ghcr.io/0xintuition/indexer-migrations:latest environment: - DATABASE_URL: $DATABASE_URL + INDEXER_DATABASE_URL: $DATABASE_URL depends_on: database: condition: service_healthy diff --git a/indexer-and-cache-migrations/Dockerfile b/indexer-and-cache-migrations/Dockerfile index fe9c5b4..7ff43c6 100644 --- a/indexer-and-cache-migrations/Dockerfile +++ b/indexer-and-cache-migrations/Dockerfile @@ -17,4 +17,4 @@ RUN apt-get update && \ RUN cargo install sqlx-cli --no-default-features --features native-tls,postgres -CMD ["sh", "-c", "sqlx migrate run --database-url $DATABASE_URL"] +CMD ["sh", "-c", "sqlx migrate run --database-url $INDEXER_DATABASE_URL"]