diff --git a/compose/production/django/entrypoint b/compose/production/django/entrypoint index 039addf3..d8bb9a7d 100644 --- a/compose/production/django/entrypoint +++ b/compose/production/django/entrypoint @@ -42,4 +42,4 @@ END >&2 echo 'PostgreSQL is available' -exec "$@" +newrelic-admin run-program "$@" diff --git a/compose/production/traefik/Dockerfile b/compose/production/traefik/Dockerfile index e6dabc51..0e683831 100644 --- a/compose/production/traefik/Dockerfile +++ b/compose/production/traefik/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/traefik:2.11.28 +FROM docker.io/traefik:2.11.29 RUN mkdir -p /etc/traefik/acme \ && touch /etc/traefik/acme/acme.json \ && chmod 600 /etc/traefik/acme/acme.json diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 813552ab..93e855c0 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -92,3 +92,17 @@ services: limits: cpus: "0.1" memory: 100M + + newrelic-agent: + image: newrelic/infrastructure:1.67.3 + env_file: + - ./.envs/.production/.newrelic + cap_add: + - SYS_PTRACE + network_mode: host + pid: host + privileged: true + volumes: + - "/:/host:ro" + - "/var/run/docker.sock:/var/run/docker.sock" + restart: unless-stopped