diff --git a/.circleci/config.yml b/.circleci/config.yml index bfabbff..00a9da7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,6 +103,7 @@ jobs: executor: docker-ruby environment: IMAGE_NAME: nbjc-app + DD_API_KEY: $DD_API_KEY steps: - checkout - ruby/install-deps diff --git a/docker-compose.yml b/docker-compose.yml index 0054c79..05b1d53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: - redis:/var/lib/redis/data api: + container_name: rails_api image: outintech/nbjc-app:$DEPLOY_TAG depends_on: - redis @@ -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: