Skip to content

Commit 5879cbf

Browse files
Jennings ZhangJennings Zhang
authored andcommitted
Auto-run hasura-cli
1 parent b4cd2c9 commit 5879cbf

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

docker-compose.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,12 @@ services:
295295
local:
296296
profiles:
297297
- hasura
298+
healthcheck:
299+
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz?strict=false"]
300+
interval: 5s
301+
timeout: 10s
302+
retries: 5
303+
start_period: 5s
298304
data-connector-agent:
299305
image: hasura/graphql-data-connector:v2.40.0
300306
restart: unless-stopped
@@ -335,16 +341,19 @@ services:
335341
retries: 3
336342
start_period: 60s
337343
hasura-cli:
338-
image: ghcr.io/fnndsc/hasura-cli
344+
image: ghcr.io/fnndsc/hasura-cli:2.41.0
339345
command: hasura metadata apply
340-
restart: never
346+
restart: "no"
341347
volumes:
342348
- ./hasura:/hasura:ro
343349
working_dir: /hasura
344350
networks:
345351
local:
346352
profiles:
347-
- hasura-cli # TODO start up automatically after hasura is up
353+
- hasura
354+
depends_on:
355+
graphql-engine:
356+
condition: service_healthy
348357

349358
# Non-root container user workarounds
350359

hasura/migrations/.gitkeep

Whitespace-only changes.

hasura/seeds/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)