/php-newrelic-agent-example

A minimal docker-compose php app using newrelic apm

Primary LanguageDockerfile

PHP Docker Compose NewRelic APM

This repo holds a minimal PHP app in docker-compose that is instrumented by NewRelic's PHP APM.

Getting Started

git clone https://github.com/briankopp/php-newrelic-agent

You'll need a couple of secrets, so create an .env file.

touch .env
echo "NEW_RELIC_LICENSE_KEY=[your_license_key_here]" >> .env
echo "NEW_RELIC_APP_NAME=test-php" >> .env

Build and run!

docker-compose build
docker-compose up

Open a browser to http://localhost:8080/index.php.

In a few minutes, your test-app php app will be present in APM.