Skip to content

Commit ca65657

Browse files
chore: fix PWA healthcheck
1 parent 20930e1 commit ca65657

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

compose.override.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ services:
3434
WATCHPACK_POLLING: "true"
3535
# Development usage only
3636
NODE_TLS_REJECT_UNAUTHORIZED: "0"
37+
healthcheck:
38+
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ]
39+
start_period: 15s
40+
interval: 5s
41+
timeout: 3s
42+
retries: 5
3743

3844
###> doctrine/doctrine-bundle ###
3945
database:

compose.prod.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ services:
2222
NEXT_PUBLIC_OIDC_SERVER_URL: ${NEXT_PUBLIC_OIDC_SERVER_URL}
2323
environment:
2424
AUTH_SECRET: ${AUTH_SECRET}
25+
healthcheck:
26+
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ]
27+
start_period: 5s
28+
interval: 5s
29+
timeout: 3s
30+
retries: 5
2531

2632
database:
2733
environment:

compose.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ services:
4848
AUTH_SECRET: ${AUTH_SECRET:-!ChangeThisNextAuthSecret!}
4949
AUTH_URL: ${AUTH_URL:-https://localhost/api/auth}
5050
NEXT_SHARP_PATH: /srv/app/node_modules/sharp
51-
healthcheck:
52-
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1" ]
53-
start_period: 5s
54-
interval: 10s
55-
timeout: 3s
56-
retries: 5
5751

5852
###> doctrine/doctrine-bundle ###
5953
database:

0 commit comments

Comments
 (0)