Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 560 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 560 Bytes

Nginx Docker Image with GeoIP 2 Support

Usage

docker run -d --name=nginx czerasz/nginx-geoip2:latest

Or use in Dockerfile:

FROM czerasz/nginx-geoip2:latest

# Add GeoIP configuration file to enable GeoIP 2 variables
ADD ./config/geoip2.conf /etc/nginx/conf.d/geoip2.conf

Test

Build container:

./scripts/docker-build.sh

Run tests:

./test/test.sh