Dockerized version of the pynginx-accesstail
This will build and run containers to do the following:
- Run NGINX with PHP-FPM
- Run python instance of tail.py
- Run python instance of gentraffic.py (10 sec delay to allow nginx to start)
Gentraffic will send requests to the Nginx server 100 times at random intervals. This is used to test the tail.py script.
Nginx access log can be viewed at /var/log/nginx/access.log Pytail output can be viewed at /var/log/stats.log
From pynginx-accesstail-docker directory
docker-compose up -d