Skip to content

Commit

Permalink
chore: fix PWA healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Jan 20, 2025
1 parent 20930e1 commit ca65657
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ services:
WATCHPACK_POLLING: "true"
# Development usage only
NODE_TLS_REJECT_UNAUTHORIZED: "0"
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ]
start_period: 15s
interval: 5s
timeout: 3s
retries: 5

###> doctrine/doctrine-bundle ###
database:
Expand Down
6 changes: 6 additions & 0 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ services:
NEXT_PUBLIC_OIDC_SERVER_URL: ${NEXT_PUBLIC_OIDC_SERVER_URL}
environment:
AUTH_SECRET: ${AUTH_SECRET}
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ]
start_period: 5s
interval: 5s
timeout: 3s
retries: 5

database:
environment:
Expand Down
6 changes: 0 additions & 6 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ services:
AUTH_SECRET: ${AUTH_SECRET:-!ChangeThisNextAuthSecret!}
AUTH_URL: ${AUTH_URL:-https://localhost/api/auth}
NEXT_SHARP_PATH: /srv/app/node_modules/sharp
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1" ]
start_period: 5s
interval: 10s
timeout: 3s
retries: 5

###> doctrine/doctrine-bundle ###
database:
Expand Down

0 comments on commit ca65657

Please sign in to comment.