Fixed geoipupdate environment handling
This commit is contained in:
parent
705e80da70
commit
b721da3a11
2 changed files with 2 additions and 4 deletions
3
README.md
Executable file → Normal file
3
README.md
Executable file → Normal file
|
@ -9,11 +9,12 @@ git clone https://github.com/patschi/parsedmarc-dockerized.git /opt/parsedmarc-d
|
|||
cd /opt/parsedmarc-dockerized/ && cp data/conf/parsedmarc/config.sample.ini data/conf/parsedmarc/config.ini
|
||||
```
|
||||
|
||||
2. Now we create an environment file for your geoipupdate settings from your [MaxMind account](https://www.maxmind.com/en/account/) (fill in your data!)
|
||||
2. Now we create an environment file for your geoipupdate settings from your [MaxMind account](https://www.maxmind.com/en/account/). For update cycles 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!)
|
||||
```
|
||||
cat > geoipupdate.env <<EOF
|
||||
GEOIPUPDATE_ACCOUNT_ID=HERE_GOES_YOUR_ACCOUNT_ID
|
||||
GEOIPUPDATE_LICENSE_KEY=HERE_GOES_YOUR_LICENSE_KEY
|
||||
GEOIPUPDATE_FREQUENCY=24
|
||||
EOF
|
||||
```
|
||||
|
||||
|
|
3
docker-compose.yml
Executable file → Normal file
3
docker-compose.yml
Executable file → Normal file
|
@ -81,10 +81,7 @@ services:
|
|||
env_file:
|
||||
- geoipupdate.env
|
||||
environment:
|
||||
- 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