You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/routing/configuration/cli.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,11 +184,12 @@ For default behavior and possible values, see [Apollo Uplink](/federation/manage
184
184
</td>
185
185
<td>
186
186
187
-
An OCI reference to an image that contains the supergraph schema for the router.<br/>
187
+
An OCI reference to a graph artifact that contains the supergraph schema for the router to run.<br/><br/>
188
188
189
-
When this option is set, the router will fetch the schema from the specified OCI image instead of using Apollo Uplink. Note that Apollo Uplink will still be used for entitlements and persisted queries.<br/>
189
+
When you set this option, the router uses the schema from the specified graph artifact instead of Apollo Uplink.
190
+
The router still fetches entitlements and persisted queries from Uplink.<br/><br/>
190
191
191
-
⚠️ **This option does not support hotreloading schemas.**
192
+
⚠️ **This option is in preview and doesn't support hot-reloading of schemas.**
Copy file name to clipboardExpand all lines: docs/source/routing/self-hosted/containerization/docker-router-only.mdx
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The exact image version to use depends on which release you wish to use. In the
24
24
25
25
## Basic example running router in Docker
26
26
27
-
To run the router, your Docker container must have the [`APOLLO_GRAPH_REF`](/router/configuration/overview#apollo_graph_ref) and [`APOLLO_KEY`](/router/configuration/overview#apollo_key) environment variables set to your graph ref and API key, respectively.
27
+
To run the router, set the [`APOLLO_GRAPH_REF`](/graphos/routing/configuration/envvars#apollo_graph_ref) and [`APOLLO_KEY`](/graphos/routing/configuration/envvars#apollo_key) environment variables in your Docker container to your graph ref and API key.
28
28
29
29
Below is a basic example of running a router image with Docker, either with `docker run` or `docker compose`. It downloads your supergraph schema from Apollo and uses a default configuration that listens for connections on port `4000`.
30
30
@@ -53,7 +53,7 @@ services:
53
53
54
54
Whether you use `docker run` or `docker compose`, make sure to replace `<router-image-version>` with whichever version you want to use, and `<your-graph-ref>` and `<your-graph-api-key>` with your graph reference and API key, respectively.
55
55
56
-
For more complex configurations, such as overriding subgraph URLs or propagating headers, see [Router Configuration](/router/configuration/overview/).
56
+
For more complex configurations, such as overriding subgraph URLs or propagating headers, see [Router Configuration](/graphos/routing/configuration/overview/).
57
57
58
58
## Override the configuration
59
59
@@ -148,19 +148,24 @@ docker run -p 4000:4000 \
148
148
149
149
In this example, we have to mount the local definition of the supergraph into our image, _and_ specify the location of the file. It doesn't have to be mounted in the `/dist/schema` directory, but it's a reasonable location to use. We must specify the configuration file location as well, since overriding the default params will override our default config file location. In this case, since we don't want to change our router configuration but want to make sure it's used, we just specify the default location of the default configuration.
150
150
151
-
### Using an OCI image reference
151
+
### Using a graph artifact reference
152
152
153
-
You can use the `--graph-artifact-reference` option to fetch the supergraph schema from an OCI image:
153
+
⚠️ This option is in preview and doesn't support hot-reloading of schemas.
154
+
155
+
Set the `APOLLO_GRAPH_ARTIFACT_REFERENCE` environment variable to use the supergraph schema from a graph artifact:
Copy file name to clipboardExpand all lines: docs/source/routing/self-hosted/containerization/docker.mdx
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The exact image version to use depends on which release you wish to use. In the
20
20
21
21
## Quick start
22
22
23
-
To run the router, your Docker container must have the [`APOLLO_GRAPH_REF`](/router/configuration/overview#apollo_graph_ref) and [`APOLLO_KEY`](/router/configuration/overview#apollo_key) environment variables set to your graph ref and API key, respectively.
23
+
To run the router, set the [`APOLLO_GRAPH_REF`](/graphos/routing/configuration/envvars#apollo_graph_ref) and [`APOLLO_KEY`](/graphos/routing/configuration/envvars#apollo_key) environment variables in your Docker container to your graph ref and API key.
24
24
25
25
Below is a basic example of running an Apollo Runtime image with Docker. It downloads your supergraph schema from Apollo and uses a default configuration that listens for connections on port `4000`.
26
26
@@ -94,21 +94,25 @@ Both local and container paths must be specified as absolute paths.
94
94
If you don't want to automatically update your supergraph via [Apollo Uplink](/federation/managed-federation/uplink/), or you don't have connectivity to access Apollo Uplink from your environment, you have two options:
95
95
96
96
1. Using a local supergraph file, as documented in the [Configuring using local files](#configuring-using-local-files) section.
97
-
1. Using an [OCI image reference](#using-an-oci-image-reference)
97
+
1. Using a [graph artifact reference](#using-a-graph-artifact-reference)
98
98
99
-
### Using an OCI image reference
99
+
### Using a graph artifact reference
100
100
101
-
You can use the `APOLLO_GRAPH_ARTIFACT_REFERENCE` environment variable to fetch the supergraph schema from an OCI image:
101
+
⚠️ This option is in preview and doesn't support hot-reloading of schemas.
102
+
103
+
Set the `APOLLO_GRAPH_ARTIFACT_REFERENCE` environment variable to use the supergraph schema from a graph artifact:
When using this option, the router will fetch the schema from the specified OCI image instead of using Apollo Uplink. Additional information on graph artifacts is available in the [router CLI options documentation](/docs/graphos/routing/configuration/cli#command-line-options).
113
+
When you set this option, the router uses the schema from the specified graph artifact instead of Apollo Uplink.
114
+
The router still fetches entitlements and persisted queries from Uplink.
115
+
For more information on graph artifacts, see the [Router CLI Configuration Reference](/graphos/routing/configuration/cli#--graph-artifact-reference).
112
116
113
117
## Running a specific Router and MCP version
114
118
@@ -118,7 +122,7 @@ To learn more, see the [tagging documentation](https://github.com/apollographql/
118
122
119
123
## Additional router configuration information
120
124
121
-
For more complex configurations, such as overriding subgraph URLs or propagating headers, see [Router Configuration](/router/configuration/overview/).
125
+
For more complex configurations, such as overriding subgraph URLs or propagating headers, see [Router Configuration](/graphos/routing/configuration/overview/).
0 commit comments