Comments (3)
Does it happen when you use docker run? Could it be that compose is restarting the exited container?
from geoipupdate.
Ah you're right. When I run this...
docker run --rm -it --name geoipupdate\
--env GEOIPUPDATE_ACCOUNT_ID=XXXXXX \
--env GEOIPUPDATE_LICENSE_KEY=XXXXXXXXXXXXXXXX \
--env 'GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country' \
--volume geoipupdate_data:/usr/share/GeoIP \
maxmindinc/geoipupdate
...it runs once and exits.
# STATE: Creating configuration file at /etc/GeoIP.conf
AccountID XXXXXX
LicenseKey XXXXXXXXXXXXXXXX
EditionIDs GeoLite2-ASN GeoLite2-City GeoLite2-Country
# STATE: Running geoipupdate
What is the correct restart policy to run this with docker-compose? I tested on-failure
(without setting GEOIPUPDATE_FREQUENCY
) and I get an exit code of zero.
Exited (0) 2 minutes ago
So I'm assuming if you're using docker-compose, you need to either:
- specify
GEOIPUPDATE_FREQUENCY
or - use
restart: on-failure
from geoipupdate.
I'm not very familiar with compose, but it sounds like either of those options would be appropriate. I think it depends how you'd want to schedule the updates for your use case.
For the second option, presumably geoipupdate would never re-run until you restarted the compose application, unless there's another way to schedule it with compose. Kubernetes has the CronJob resource for example. I'm not sure if compose has something equivalent for controlling scheduling of containers itself.
from geoipupdate.
Related Issues (20)
- Allow variables in GEOIPUPDATE_DB_DIR
- Secret files not getting parsed HOT 6
- Repository on Ubuntu has different versions for X86 and ARM, with different library locations HOT 3
- centos installation geoipupdate0:6 online update failed HOT 3
- geoipupdate output written to stderr instead of stdout HOT 4
- CSV support would be key to be able to use this in conjunction with geolite2legacy HOT 1
- 127.0.0.11:53: server misbehaving HOT 3
- Create new release to fix vuln in alpine version in use HOT 1
- Error to use make file HOT 1
- How to download paid binary using licence key? HOT 1
- GeoIP.conf file still required to exist HOT 1
- Is there an update for R2 presigned URLs? HOT 3
- Error on update HOT 1
- Helm chart HOT 2
- `AccountID` option is required HOT 5
- docker: NFS: Error retrieving updates: acquiring file lock: no locks available HOT 3
- v6 image not producing any output HOT 1
- Version mismatch: Unable to download from proxy.golang.org HOT 2
- Since 7.0.1 reaching accountlimits HOT 3
- Error loading configuration: unknown option on line 1 - windows server 2019 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoipupdate.