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

adds datadog agent as docker container #50

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
executor: docker-ruby
environment:
IMAGE_NAME: nbjc-app
DD_API_KEY: $DD_API_KEY
steps:
- checkout
- ruby/install-deps
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- redis:/var/lib/redis/data

api:
container_name: rails_api
image: outintech/nbjc-app:$DEPLOY_TAG
depends_on:
- redis
Expand Down Expand Up @@ -41,6 +42,20 @@ services:
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"

datadog:
image: "datadog/agent:latest"
environment:
- DD_API_KEY=${DD_API_KEY}
- DD_LOGS_ENABLED=true
- DD_AC_INCLUDE="name:rails_api"
- DD_PROCESS_AGENT_ENABLED=true
- DD_SITE=datadoghq.eu

volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro

volumes:
redis:
api-logs:
Expand Down