Skip to content

Commit

Permalink
change back to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
liubomyrgavryliv committed Dec 10, 2023
1 parent a6c1beb commit 595b721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions compose/production/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ ENV DD_VERSION="0.1.0"
ENV DD_APPSEC_ENABLED=true
ENV DD_LOGS_INJECTION=true

LABEL "com.datadoghq.ad.check_names"='["nginx"]'
LABEL "com.datadoghq.ad.init_configs"='[{}]'
LABEL "com.datadoghq.ad.instances"='[{"nginx_status_url": "http://nginx:81/nginx_status/"}]'
LABEL "com.datadoghq.ad.logs"='[\
{ "source": "nginx", "service": "nginx", "sourcecategory": "http_web_access", "path": "/var/log/nginx/access.log" },\
{ "source": "nginx", "service": "nginx", "sourcecategory": "http_web_access", "path": "/var/log/nginx/error.log" }\
]'

LABEL "com.datadoghq.tags.service"="nginx"
LABEL "com.datadoghq.tags.env"="production"

Expand Down
4 changes: 3 additions & 1 deletion docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ services:

datadog:
container_name: datadog
image: gcr.io/datadoghq/agent:latest
build:
context: .
dockerfile: ./compose/production/datadog/Dockerfile
pid: host
networks:
- backend
Expand Down

0 comments on commit 595b721

Please sign in to comment.