Skip to content

Commit 4692853

Browse files
committed
feat: add database dependency to Hasura service in compose config
1 parent 33a43d3 commit 4692853

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/hasura/compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ services:
1010
- target: 8080
1111
published: 8080
1212
mode: ingress
13+
depends_on:
14+
database:
15+
condition: service_started
1316
environment:
1417
- HASURA_GRAPHQL_ADMIN_SECRET
1518
- HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres

0 commit comments

Comments
 (0)