forked from czerasz/docker-nginx-geoip2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |