Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose.yml #19

Merged
merged 1 commit into from
Aug 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ This Docker image is based on the official [alpine:3.3](https://hub.docker.com/_

**Please note: Replaced by your newrelic license key is `YOUR_NEW_RELIC_LICENSE_KEY`**

### docker compose

docker-compose up

### docker run

In order to give newrelic full access for monitoring there are a few unusual flags you'll need.
Expand All @@ -29,8 +33,6 @@ In order to give newrelic full access for monitoring there are a few unusual fla
--restart=always \
uzyexe/newrelic

--


## New Relic

Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
newrelic-servers:
environment:
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
tty: true
image: uzyexe/newrelic:latest
container_name: "newrelic"
volumes:
- /dev:/dev
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
stdin_open: true
network_mode: "host"