mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Add healthcheck on mercure service (#1306)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user