diff --git a/README.md b/README.md index a5b79a61..43fd2212 100644 --- a/README.md +++ b/README.md @@ -134,14 +134,12 @@ The fastest way to get support is by [searching our documentation](https://acade If you encounter issues with the indexer: -- Check the logs for any errors or warnings that might indicate what is wrong. Use the command: +- Check the logs of indexer for any errors or warnings that might indicate what is wrong. Use the command: ```sh - docker logs + docker logs -f subquery-node ``` - Replace with the actual ID of your Docker container involved in indexing. - - If restarting the indexer is necessary, first delete the `.data` folder in the root directory to avoid conflicts or corruption of data: ```sh diff --git a/docker-compose.yml b/docker-compose.yml index e2ecc711..ebd479d8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,7 @@ services: subquery-node: image: subquerynetwork/subql-node-cosmos:v4.2.1 + container_name: subquery-node depends_on: postgres: condition: service_healthy @@ -71,7 +72,7 @@ services: - default - ci - a3p: + agd: image: ghcr.io/agoric/agoric-3-proposals:latest container_name: agd ports: diff --git a/project.ts b/project.ts index 5ed79c5d..f3618ed5 100644 --- a/project.ts +++ b/project.ts @@ -44,6 +44,13 @@ const networkConfig = { chaintypes: chainTypesU18, startBlock: 1, }, + /* + This configuration is specifically for the "ci" profile for the agd container. + The reason for using the "ci" profile is because the URL http://host.docker.internal:26657 + is not accessible in CI environments. Therefore, we added the a3p service to the Docker + Compose file and assigned it a "ci" profile to ensure it only runs in CI. In the CI environment, + we then use the address http://agd:26657 +*/ ci: { chainId: 'agoriclocal', endpoint: ['http://a3p:26657'],