Skip to content

Commit ceeb18c

Browse files
authored
Add healthcheck on mercure service (#1306)
1 parent fd96941 commit ceeb18c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

symfony/mercure-bundle/0.3/manifest.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,20 @@
2121
" image: dunglas/mercure",
2222
" restart: unless-stopped",
2323
" environment:",
24-
" SERVER_NAME: ':80'",
24+
" # Uncomment the following line to disable HTTPS,",
25+
" #SERVER_NAME: ':80'",
2526
" MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'",
2627
" MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'",
2728
" # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive",
2829
" MERCURE_EXTRA_DIRECTIVES: |",
2930
" cors_origins http://127.0.0.1:8000",
3031
" # Comment the following line to disable the development mode",
3132
" command: /usr/bin/caddy run --config /etc/caddy/Caddyfile.dev",
33+
" healthcheck:",
34+
" test: [\"CMD\", \"curl\", \"-f\", \"https://localhost/healthz\"]",
35+
" timeout: 5s",
36+
" retries: 5",
37+
" start_period: 60s",
3238
" volumes:",
3339
" - mercure_data:/data",
3440
" - mercure_config:/config"

0 commit comments

Comments
 (0)