-
Register with https://blackfire.io.
-
Add
blackfire
service indocker-compose.yml
and 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.yml
and replaceServer ID
andServer Token
with 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.yml
files using version 1:Note: if you do not see
version: 2
in the beginning of yourdocker-compose.yml
file, then proceed. Add a link in thecli
service 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.