-
Register with https://blackfire.io.
-
Add
blackfireservice indocker-compose.ymland configure API keys:Option 1: Use Blackfire Docker instructions to get a snippet that you can put in a
.bash_rc/etc. file globally. Uncomment respective lines indocker-compose.yml.Option 2: Grab server API keys from your profile page. Uncomment respective lines in
docker-compose.ymland replaceServer IDandServer Tokenwith your API keys.blackfire: image: blackfire/blackfire environment: # Option 1: exposes host's BLACKFIRE_SERVER_ID and TOKEN environment variables. #- BLACKFIRE_SERVER_ID #- BLACKFIRE_SERVER_TOKEN # Option 2: use global environment credentials. #- BLACKFIRE_SERVER_ID=<Server ID> #- BLACKFIRE_SERVER_TOKEN=<Server Token> # Log verbosity level (4: debug, 3: info, 2: warning, 1: error). #- BLACKFIRE_LOG_LEVEL=4
-
For
docker-compose.ymlfiles using version 1:Note: if you do not see
version: 2in the beginning of yourdocker-compose.ymlfile, then proceed. Add a link in thecliservice definition:... links: ... - blackfire ...
-
Apply new configuration with
dsh up -
Follow instruction to install and use blackfire via a Chrome extension.
See blackfire.io for more docs on using blackfire including support for other browsers.