You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-17 01:22:25 +02:00
update freegeoip
This commit is contained in:
@ -2,12 +2,12 @@
|
|||||||
# Dockerfile for freegeoip
|
# Dockerfile for freegeoip
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine:3
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV FREEGEOIP_VERSION=3.4.1
|
ARG FREEGEOIP_VERSION=3.4.1
|
||||||
ENV FREEGEOIP_FILE=freegeoip-${FREEGEOIP_VERSION}-linux-amd64.tar.gz
|
ARG FREEGEOIP_FILE=freegeoip-${FREEGEOIP_VERSION}-linux-amd64.tar.gz
|
||||||
ENV FREEGEOIP_URL=https://github.com/fiorix/freegeoip/releases/download/v${FREEGEOIP_VERSION}/${FREEGEOIP_FILE}
|
ARG FREEGEOIP_URL=https://github.com/fiorix/freegeoip/releases/download/v${FREEGEOIP_VERSION}/${FREEGEOIP_FILE}
|
||||||
|
|
||||||
WORKDIR /opt/freegeoip
|
WORKDIR /opt/freegeoip
|
||||||
|
|
||||||
@ -21,4 +21,4 @@ COPY data/GeoLite2-City.mmdb.gz /opt/freegeoip/data/
|
|||||||
EXPOSE 8080 8888
|
EXPOSE 8080 8888
|
||||||
|
|
||||||
ENTRYPOINT ["./freegeoip"]
|
ENTRYPOINT ["./freegeoip"]
|
||||||
CMD ["-public", "public", "-http", ":8080", "-internal-server", ":8888", "-db", "data/GeoLite2-City.mmdb.gz"]
|
CMD ["-public", "public", "-http", ":8080", "-internal-server", ":8888", "-db", "data/GeoLite2-City.mmdb.gz", "-use-x-forwarded-for"]
|
||||||
|
@ -1,16 +1,7 @@
|
|||||||
freegeoip
|
freegeoip
|
||||||
=========
|
=========
|
||||||
|
|
||||||
## docker-compose.yml
|
[freegeoip][1] provides a public HTTP API for software developers to search the geolocation of IP addresses.
|
||||||
|
|
||||||
```yaml
|
|
||||||
freegeoip:
|
|
||||||
image: vimagick/freegeoip
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
- "8888:8888"
|
|
||||||
restart: always
|
|
||||||
```
|
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
@ -44,3 +35,5 @@ go_gc_duration_seconds{quantile="0.75"} 0.000112867
|
|||||||
go_gc_duration_seconds{quantile="1"} 0.000260533
|
go_gc_duration_seconds{quantile="1"} 0.000260533
|
||||||
go_gc_duration_seconds_sum 0.001055739
|
go_gc_duration_seconds_sum 0.001055739
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[1]: https://freegeoip.io/
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
freegeoip:
|
freegeoip:
|
||||||
image: vimagick/freegeoip
|
image: vimagick/freegeoip
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "8888:8888"
|
- "8888:8888"
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
Reference in New Issue
Block a user