From NGINX version 1.9.11 and upwarts, a new feature is introduced: dynamic modules.
With dynamic modules, you can optionally load separate shared
If you are using docker nginx:latest this module is already included in the image as such you only need specify load_module as such:
"/usr/lib/nginx/modules/ngx_http_geoip_module.so";
You also need to create a geoip folder in your nginx mapped volume. Though the databases seem to no longer been updated or available and geoip2 modules are not included. So you many need to google...