Skip to content

Conversation

@andreyorst
Copy link
Contributor

Added example for integrating with Apollo gateway via graphql federation API


## Run Aidbox and Apollo gateway

```bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets make it in a modern way, for example like here

2. **Initialize Aidbox instance**

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this, but it can't automatically start Apollo with this approach. Apollo starts, tries to access Aidbox, but since it's not initialized, it fails. So you'll have to restart Apollo manually, instead of just doing docker compose up.

retries: 90
start_period: 30s

apollo-gateway:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use a Dockerfile here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use custom index.js to set everything up, so I'm not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants