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
Build container:
./scripts/docker-build.sh
Run tests:
./test/test.sh