Skip to content

Commit

Permalink
Upgraded docker-compose-wait and bumped the wait timeout to 60 (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
alalonde authored Sep 17, 2021
1 parent 58b5b84 commit b69aa39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
- ${HASURA_PORT}:8080
environment:
WAIT_HOSTS: database:5432, ${BACKEND_HOST:-backend:4000}
# Backend can take more than 30 seconds to start completely, bump the timeout
WAIT_TIMEOUT: 60
HASURA_GRAPHQL_SERVER_PORT: ${HASURA_PORT:-8080}
HASURA_GRAPHQL_DATABASE_URL: postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@database:5432/${DATABASE_NAME}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
Expand Down
2 changes: 1 addition & 1 deletion hasura/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM hasura/graphql-engine:v1.3.3.cli-migrations-v2

ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait /wait
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /wait
RUN chmod +x /wait

## Default setup
Expand Down

0 comments on commit b69aa39

Please sign in to comment.