Improved setup and README
This commit is contained in:
parent
c7fd05d4f8
commit
0c1897af2d
4 changed files with 18 additions and 9 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
data/conf/parsedmarc/config.ini
|
14
README.md
14
README.md
|
@ -4,11 +4,17 @@ Note: The standalone `parsedmarc` docker image can also be used, if interested:
|
|||
|
||||
## Setup:
|
||||
```
|
||||
$ cd /opt/
|
||||
$ git clone https://github.com/patschi/parsedmarc-dockerized.git
|
||||
$ cd parsedmarc-dockerized/
|
||||
$ nano docker-compose.yml # Edit docker-compose.yml and change environment variables below for geoipupdate from maxmind.
|
||||
$ git clone https://github.com/patschi/parsedmarc-dockerized.git /opt/parsedmarc-dockerized/
|
||||
$ cd /opt/parsedmarc-dockerized/ && cp data/conf/parsedmarc/config.sample.ini data/conf/parsedmarc/config.ini
|
||||
|
||||
# Create environment file for your geoipupdate API settings (fill in your data)
|
||||
$ cat > geoipupdate.env <<EOF
|
||||
GEOIPUPDATE_ACCOUNT_ID=YOUR_ACCOUNT_ID
|
||||
GEOIPUPDATE_LICENSE_KEY=YOUR_LICENSE_KEY
|
||||
EOF
|
||||
|
||||
$ nano data/conf/parsedmarc/config.ini # Edit parsedmarc config file (and change test to False when testing done!)
|
||||
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ host = imap.example.com
|
|||
port = 993
|
||||
user = dmarcresports@example.com
|
||||
password = $uperSecure
|
||||
ssl = True
|
||||
|
||||
# advanced
|
||||
watch = True
|
||||
ssl = True
|
||||
|
||||
archive_folder = Processed
|
||||
delete = False
|
|
@ -78,11 +78,13 @@ services:
|
|||
|
||||
geoipupdate:
|
||||
image: maxmindinc/geoipupdate
|
||||
env_file:
|
||||
- geoipupdate.env
|
||||
environment:
|
||||
- GEOIPUPDATE_ACCOUNT_ID=TO_BE_SET
|
||||
- GEOIPUPDATE_LICENSE_KEY=TO_BE_SET
|
||||
- GEOIPUPDATE_EDITION_IDS=TO_BE_SET
|
||||
- GEOIPUPDATE_FREQUENCY=24
|
||||
- GEOIPUPDATE_ACCOUNT_ID=${GEOIPUPDATE_ACCOUNT_ID}
|
||||
- GEOIPUPDATE_LICENSE_KEY=${GEOIPUPDATE_LICENSE_KEY}
|
||||
- "GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country"
|
||||
- GEOIPUPDATE_FREQUENCY=${GEOIPUPDATE_FREQUENCY:-24}
|
||||
- GEOIPUPDATE_PRESERVE_FILE_TIMES=1
|
||||
restart: always
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue