LvckyAPI's avatar

How to deploy nightwatch on docker-compose Setup

Hello,

I have Laravel running in a docker compose setup. I was wondering if this implementation with an extra nightwatch container can work. I think it cannot watch on errors of the original application?

Can anyone please provide me a hint how to set up it IN MY SETUP best. (running the agent so that application/queue errors and so stuff can be watched)

Thank you very much :)

This is my compose file:

0 likes
3 replies
Fouteox's avatar
Level 5

Hello! I spent the afternoon trying to get this to work and I succeeded. Launch your nightwatch container with the following command:

php artisan artisan nightwatch:agent --listen-on=0.0.0.0:2407

Add these environment variables to all laravel containers (php, queue, cron):

NIGHTWATCH_INGEST_URI=nightwatch:2407

I had to delete the NIGHTWATCH_REQUEST_SAMPLE_RATE variable otherwise I didn't see anything.

1 like

Please or to participate in this conversation.