Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Jan 22, 2025
1 parent 2a8888b commit 35bb486
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion indexer-and-cache-migrations/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 35bb486

Please sign in to comment.