Skip to content

Commit

Permalink
Simplify config of geoipupdate.
Browse files Browse the repository at this point in the history
  • Loading branch information
accolon committed Jan 4, 2023
1 parent 4d0e01c commit ab1f840
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ cd /opt/parsedmarc-dockerized/ && cp data/conf/parsedmarc/config.sample.ini data
nano data/conf/parsedmarc/config.ini
```

3. Now we create an environment file, containing your geoipupdate settings from your [MaxMind account](https://www.maxmind.com/en/account/) to allow the container to pull the databases. For update cycles of the databases, please see [here](https://support.maxmind.com/geoip-faq/geoip2-and-geoip-legacy-database-updates/how-often-are-the-geoip2-and-geoip-legacy-databases-updated/). (Fill in your data!)
3. Add your geoipupdate credentials from your [MaxMind account](https://www.maxmind.com/en/account/) to allow the container to pull the databases. For update cycles of the databases, please see [here](https://support.maxmind.com/hc/en-us/articles/4408216129947).
```
cat > geoipupdate.env <<EOF
GEOIPUPDATE_ACCOUNT_ID=HERE_GOES_YOUR_ACCOUNT_ID
GEOIPUPDATE_LICENSE_KEY=HERE_GOES_YOUR_LICENSE_KEY
GEOIPUPDATE_FREQUENCY=24
EOF
nano data/conf/geoipupdate/geoipupdate.env
```

4. Change credentials for HTTP basic auth, e.g. this way (needs apache2-utils or httpd-tools):
Expand Down
3 changes: 3 additions & 0 deletions data/conf/geoipupdate.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GEOIPUPDATE_ACCOUNT_ID=your_account_id
GEOIPUPDATE_LICENSE_KEY=your_license_key
GEOIPUPDATE_FREQUENCY=48
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:
geoipupdate:
image: maxmindinc/geoipupdate
env_file:
- geoipupdate.env
- ./data/conf/geoipupdate/geoipupdate.env
environment:
- "GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country"
- GEOIPUPDATE_PRESERVE_FILE_TIMES=1
Expand Down

0 comments on commit ab1f840

Please sign in to comment.