Skip to content

Commit ab0bccc

Browse files
DominicGBauerDominicGBauer
andauthored
feat: add healthcheck (#40)
Co-authored-by: DominicGBauer <dominic@nomanini.com>
1 parent 46036eb commit ab0bccc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/powersync.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ services:
7575
# PS_JWK_N:
7676
# PS_JWK_E:
7777
# PS_JWK_KID:
78-
78+
# This requires image: journeyapps/powersync-service:0.5.8 or later
79+
# healthcheck:
80+
# 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))"]
81+
# interval: 5s
82+
# timeout: 1s
83+
# retries: 15
7984
ports:
8085
- ${PS_PORT}:${PS_PORT}

0 commit comments

Comments
 (0)