- Check that you have Docker and Docker Compose installed.
- Clone repository.
- Move 'docker' folder out of the repository folder.
- Move repository folder 'event-monitor-snort3' to docker/serv
- Amend config files in folder 'configs' if necessary.
- From the 'docker' folder run
docker-compose up --build
For testing, it has local rule to catch anything on dst_port 80, so:
- Pull nginx image from docker hub
docker pull nginx
- Run it on the same network as main project:
docker run -d --name http-server-container --network=docker_snort_network -p 8080:80 nginx
- From server container access nginx server with
curl http://http-server-container:80
(run several times and wait a bit)
Snort will catch these events, alert_reader will read them and store to DB, Djando/DRF project will provide access via API by routes described in Open API Specification.