Skip to content

Commit 4009991

Browse files
feat: enable health checks (#43)
1 parent 51bc32a commit 4009991

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

services/powersync.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,16 @@ services:
6969
# PS_JWK_E:
7070
# PS_JWK_KID:
7171
# This requires image: journeyapps/powersync-service:0.5.8 or later
72-
# healthcheck:
73-
# test: ["CMD", "node", "-e", "fetch('http://localhost:${PS_PORT}/probes/liveness').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"]
74-
# interval: 5s
75-
# timeout: 1s
76-
# retries: 15
72+
healthcheck:
73+
test:
74+
[
75+
"CMD",
76+
"node",
77+
"-e",
78+
"fetch('http://localhost:${PS_PORT}/probes/liveness').then(r => r.ok ? process.exit(0) : process.exit(1)).catch(() => process.exit(1))"
79+
]
80+
interval: 5s
81+
timeout: 1s
82+
retries: 15
7783
ports:
7884
- ${PS_PORT}:${PS_PORT}

0 commit comments

Comments
 (0)