Skip to content

Commit

Permalink
Add Blackfire setup documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Oct 5, 2023
1 parent 889c652 commit 3e68117
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,27 @@ typing enter.

## Blackfire

@todo
In order to send profiles to Blackfire, you'll need to have a
Blackfire agent reachable by the php-fpm image and the appropriate
credentials.

Providing an agent in docker compose is easy, as it's just starting
the orignial Blackfire image.

``` yaml
blackfire:
image: blackfire/blackfire
environment:
BLACKFIRE_SERVER_ID: <your server key>
BLACKFIRE_SERVER_TOKEN: <your server token>
```

Then you just need to add the `BLACKFIRE_CLIENT_ID` and
`BLACKFIRE_CLIENT_TOKEN` to the `php-fpm` service definition.

The correct id's and tokens can be found by viewing the [Blackfire
setup documentation](https://blackfire.io/docs/php/configuration) when
logged in.

## Mail

Expand Down

0 comments on commit 3e68117

Please sign in to comment.