Add healthcheck on mercure service (#1306)

This commit is contained in:
Maxime Helias
2024-04-06 19:42:15 +02:00
committed by GitHub
parent fd96941b6d
commit ceeb18ca22
+7 -1
View File
@@ -21,7 +21,8 @@
" image: dunglas/mercure",
" restart: unless-stopped",
" environment:",
" SERVER_NAME: ':80'",
" # Uncomment the following line to disable HTTPS,",
" #SERVER_NAME: ':80'",
" MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'",
" MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'",
" # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive",
@@ -29,6 +30,11 @@
" cors_origins http://127.0.0.1:8000",
" # Comment the following line to disable the development mode",
" command: /usr/bin/caddy run --config /etc/caddy/Caddyfile.dev",
" healthcheck:",
" test: [\"CMD\", \"curl\", \"-f\", \"https://localhost/healthz\"]",
" timeout: 5s",
" retries: 5",
" start_period: 60s",
" volumes:",
" - mercure_data:/data",
" - mercure_config:/config"