Skip to content

Commit

Permalink
Add healthcheck on mercure service (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed Apr 6, 2024
1 parent fd96941 commit ceeb18c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion symfony/mercure-bundle/0.3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@
" 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",
" MERCURE_EXTRA_DIRECTIVES: |",
" 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"
Expand Down

0 comments on commit ceeb18c

Please sign in to comment.