Skip to content

Commit 0d07226

Browse files
Update ghcr.io/graphql-hive/gateway Docker tag to v1.4.5 (#506)
* Update ghcr.io/graphql-hive/gateway Docker tag to v1.4.5 * Fix command * Enable JIT in Mercurius --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent 5bcea97 commit 0d07226

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

federation-v1/gateways/hive-gateway/docker-compose.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
services:
22
gateway:
3-
image: ghcr.io/graphql-hive/gateway:1.4.4
3+
image: ghcr.io/graphql-hive/gateway:1.4.5
44
container_name: gateway
55
networks:
66
- test
77
ports:
88
- "0.0.0.0:4000:4000"
99
environment:
1010
- NODE_ENV=production
11-
- JIT=1
1211
depends_on:
1312
accounts:
1413
condition: service_healthy
@@ -23,18 +22,11 @@ services:
2322
source: federation-v1/gateways/hive-gateway/supergraph.graphql
2423
target: /serve/supergraph.graphql
2524
healthcheck:
26-
test:
27-
[
28-
"CMD",
29-
"/usr/lib/apt/apt-helper",
30-
"download-file",
31-
"http://127.0.0.1:4000/readiness",
32-
"/tmp/health",
33-
]
25+
test: [ "CMD", "/usr/lib/apt/apt-helper", "download-file", "http://127.0.0.1:4000/graphql?query=%7B+users+%7B+reviews+%7B+product+%7B+reviews+%7B+author+%7B+reviews+%7B+product+%7B+name+%7D+%7D+%7D+%7D+%7D+%7D+%7D+%7D", "/tmp/health" ]
3426
interval: 3s
3527
timeout: 5s
3628
retries: 10
37-
command: ["supergraph"]
29+
command: [ "supergraph", "--jit" ]
3830
deploy:
3931
resources:
4032
limits:

federation-v1/gateways/mercurius/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const gateway = Fastify();
66

77
gateway.register(mercuriusWithGateway, {
88
graphiql: true,
9+
jit: 1,
910
path: "/graphql",
1011
gateway: {
1112
services: [
@@ -30,7 +31,6 @@ gateway.register(mercuriusWithGateway, {
3031
mandatory: true,
3132
},
3233
],
33-
pollingInterval: 5000,
3434
},
3535
});
3636

0 commit comments

Comments
 (0)