Skip to content

Commit

Permalink
Auto-run hasura-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennings Zhang authored and Jennings Zhang committed Jul 24, 2024
1 parent b4cd2c9 commit 5879cbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ services:
local:
profiles:
- hasura
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz?strict=false"]
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
data-connector-agent:
image: hasura/graphql-data-connector:v2.40.0
restart: unless-stopped
Expand Down Expand Up @@ -335,16 +341,19 @@ services:
retries: 3
start_period: 60s
hasura-cli:
image: ghcr.io/fnndsc/hasura-cli
image: ghcr.io/fnndsc/hasura-cli:2.41.0
command: hasura metadata apply
restart: never
restart: "no"
volumes:
- ./hasura:/hasura:ro
working_dir: /hasura
networks:
local:
profiles:
- hasura-cli # TODO start up automatically after hasura is up
- hasura
depends_on:
graphql-engine:
condition: service_healthy

# Non-root container user workarounds

Expand Down
Empty file added hasura/migrations/.gitkeep
Empty file.
Empty file added hasura/seeds/.gitkeep
Empty file.

0 comments on commit 5879cbf

Please sign in to comment.