Skip to content

Commit 2f3f454

Browse files
authored
docs: use blackfire v2 (#1369)
1 parent 7437c79 commit 2f3f454

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/performance.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,16 @@ Blackfire.io allows you to monitor the performance of your applications. For mor
349349

350350
To configure Blackfire.io follow these simple steps:
351351

352-
1. Add the following to your `docker-compose.yml` file:
352+
1. Add the following to your `docker-compose.override.yml` file:
353353

354354
```yaml
355355
blackfire:
356-
image: blackfire/blackfire
356+
image: blackfire/blackfire:2
357357
environment:
358358
# Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
359359
- BLACKFIRE_SERVER_ID
360360
- BLACKFIRE_SERVER_TOKEN
361+
- BLACKFIRE_DISABLE_LEGACY_PORT=1
361362
```
362363

363364
2. Add your Blackfire.io id and server token to your `.env` file at the root of your project (be sure not to commit this to a public repository):
@@ -382,7 +383,7 @@ To configure Blackfire.io follow these simple steps:
382383
&& mkdir -p /tmp/blackfire \
383384
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
384385
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
385-
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini
386+
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8307\n" > $PHP_INI_DIR/conf.d/blackfire.ini
386387
```
387388

388389
4. Rebuild and restart all your containers

0 commit comments

Comments
 (0)