Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
czerasz committed Apr 26, 2016
1 parent 4500630 commit 95e63cb
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
# Nginx Docker Image with GeoIP 2 Support

Build container:

./scripts/docker-build.sh
[![](https://imagelayers.io/badge/czerasz/nginx-geoip2:latest.svg)](https://imagelayers.io/?images=czerasz/nginx-geoip2:latest 'Get your own badge on imagelayers.io')

Usage:
## Usage

FROM czerasz/nginx-geoip2:1.9.4
```bash
docker run -d --name=nginx czerasz/nginx-geoip2:latest
```

# Add GeoIP configuration file to enable GeoIP 2 variables
ADD ./config/geoip2.conf /etc/nginx/conf.d/geoip2.conf
Or use in `Dockerfile`:

Run container:
```
FROM czerasz/nginx-geoip2:latest
docker run -d --name='nginx-geoip2-test' 'czerasz/nginx-geoip2:1.9.4'
# Add GeoIP configuration file to enable GeoIP 2 variables
ADD ./config/geoip2.conf /etc/nginx/conf.d/geoip2.conf
```

## Test

./test/test.sh
Build container:

./scripts/docker-build.sh

Run tests:

./test/test.sh

0 comments on commit 95e63cb

Please sign in to comment.