title | sidebarTitle | description | icon |
---|---|---|---|
Using Subtrace with Docker Compose |
Docker Compose |
Monitor requests in your Docker Compose app. |
docker |
If you're using Docker Compose to run your app, you can use Subtrace to monitor all of your backend requests. Here's how you can get started:
Make the following change to your `Dockerfile` to install and use Subtrace in your app's Docker image:- CMD ["node", "./app.js"]
+ RUN curl -fsSLO https://subtrace.dev/download/latest/$(uname -s)/$(uname -m)/subtrace && chmod +x ./subtrace
+ CMD ["./subtrace", "run", "--", "node", "./app.js"]
cap_add:
- SYS_PTRACE