parsedmarc-dockerized/README.md

34 lines
2.1 KiB
Markdown
Raw Normal View History

2020-08-08 21:32:53 +02:00
# parsedmarc-dockerized
2021-10-17 21:01:51 +02:00
Note: The standalone `parsedmarc` docker image on [DockerHub @ sunred/parsedmarc](https://hub.docker.com/r/sunred/parsedmarc) can also be used, if interested.
2020-08-08 23:24:53 +02:00
## Setup:
2020-08-09 00:08:31 +02:00
1. Get basics together:
```
2021-10-17 21:01:51 +02:00
git clone https://git.snrd.de/sunred/parsedmarc-dockerized.git /opt/parsedmarc-dockerized/
2020-08-09 00:08:31 +02:00
cd /opt/parsedmarc-dockerized/ && cp data/conf/parsedmarc/config.sample.ini data/conf/parsedmarc/config.ini
2020-08-08 21:32:53 +02:00
```
2020-08-09 00:02:00 +02:00
2020-08-09 02:29:27 +02:00
2. Next we change the `parsedmarc` config (see [docs](https://domainaware.github.io/parsedmarc/#configuration-file). You can set `Test` to `True` for testing purposes.)
```
nano data/conf/parsedmarc/config.ini
```
2021-10-17 21:01:51 +02:00
3. To use the geoip updater for automatic geo location resolution you have to [create an account](https://www.maxmind.com/en/geolite2/signup) on the MaxMind website and add your license key you can retrieve from your [account page](https://www.maxmind.com/en/account) to `data/conf/geoipupdate.env`. More information in the [documentation](https://crazymax.dev/geoip-updater/usage/prerequisites/).
2020-08-09 00:02:00 +02:00
4. Finally, we start up the stack and wait:
2020-08-09 00:08:31 +02:00
```
docker-compose up -d
2020-08-08 21:32:53 +02:00
```
2020-08-08 23:24:53 +02:00
### What's happening then?
2020-08-09 02:29:27 +02:00
1. First, containers of the stack are created and started. This might take a while, as several containers have dependencies on others being in a healthy state (meaning that its service must be fully started).
2. During the startup of the `parsedmarc-init` container, all required steps and preparations are being taken care of - like generating a self-signed certificate for the included `nginx` webserver.
3. Once the Kibana container - where you can view the dashboards - is started up, the corresponding parsedmarc dashboards are automatically imported into Kibana by the `parsedmarc-init` container.
2021-10-17 21:01:51 +02:00
4. After a while, when everything is up and running, you can then access Kibana and its dashboards at `localhost:5601` that you can reverse proxy on your host system.
2020-08-08 23:24:53 +02:00
## Credits
2021-10-17 21:01:51 +02:00
Built with awesome [parsedmarc](https://github.com/domainaware/checkdmarc), [Elasticsearch and Kibana](https://www.elastic.co/), [Docker](https://docker.com) and [MaxMind GeoIP](https://dev.maxmind.com/geoip/geoip2/geolite2/).