Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose file #158

Open
ShlomiPorush opened this issue Jul 27, 2022 · 5 comments
Open

Docker compose file #158

ShlomiPorush opened this issue Jul 27, 2022 · 5 comments

Comments

@ShlomiPorush
Copy link

After I saw that there was no documentation how to run it in docker compose.. So, Enjoy.

version: '3.7'

services:
  echoip:
    image: mpolden/echoip
    command: "-C 0 -p -r -H X-Forwarded-For -a /data/GeoLite2-ASN.mmdb -c /data/GeoLite2-City.mmdb -f /data/GeoLite2-Country.mmdb"
    ports:
      - 8080:8080
    volumes:
      - ./data:/data:ro
  
  # this container needs to runs only once or whan you want to update Geo databases
  maxmind:
    image: maxmindinc/geoipupdate
    environment:
      - GEOIPUPDATE_ACCOUNT_ID= # get your own account from https://www.maxmind.com/
      - GEOIPUPDATE_LICENSE_KEY= # get your own key from https://www.maxmind.com/
      - GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country
    volumes:
      - ./data:/usr/share/GeoIP
@mqu
Copy link

mqu commented Aug 22, 2022

I have an issue with reverse-proxy and "Host" value behind apache. Header page should display some thing like this: ifconfig.my.domain — What is my IP address? but is displaying "localhost:<port> — What is my IP address?"

I am running echoip with : entrypoint: /opt/echoip/echoip -H X-Forwarded-For and this apache reverse-proxy configuration.

<VirtualHost *:443>
        ServerName ifconfig.my.domain
        ...
	ProxyPass        / http://localhost:8931/ 
        ProxyPassReverse / http://localhost:8931/
        RemoteIPHeader X-Forwarded-For
        ...
</VirtualHost>

@mqu
Copy link

mqu commented Aug 22, 2022

fixed : need to add : "ProxyPreserveHost On", in Apache reverse-proxy configuration. thanks.

@afzl-wtu
Copy link

-C 0 -p -r -H X-Forwarded-For -a /data/GeoLite2-ASN.mmdb -c /data/GeoLite2-City.mmdb -f /data/GeoLite2-Country.mmdb

No matter what I do:
My compose file:
image

But I always get this:

image

@afzl-wtu
Copy link

After I saw that there was no documentation how to run it in docker compose.. So, Enjoy.

version: '3.7'

services:
  echoip:
    image: mpolden/echoip
    command: "-C 0 -p -r -H X-Forwarded-For -a /data/GeoLite2-ASN.mmdb -c /data/GeoLite2-City.mmdb -f /data/GeoLite2-Country.mmdb"
    ports:
      - 8080:8080
    volumes:
      - ./data:/data:ro
  
  # this container needs to runs only once or whan you want to update Geo databases
  maxmind:
    image: maxmindinc/geoipupdate
    environment:
      - GEOIPUPDATE_ACCOUNT_ID= # get your own account from https://www.maxmind.com/
      - GEOIPUPDATE_LICENSE_KEY= # get your own key from https://www.maxmind.com/
      - GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country
    volumes:
      - ./data:/usr/share/GeoIP

#159

@afzl-wtu
Copy link

After I saw that there was no documentation how to run it in docker compose.. So, Enjoy.

version: '3.7'

services:
  echoip:
    image: mpolden/echoip
    command: "-C 0 -p -r -H X-Forwarded-For -a /data/GeoLite2-ASN.mmdb -c /data/GeoLite2-City.mmdb -f /data/GeoLite2-Country.mmdb"
    ports:
      - 8080:8080
    volumes:
      - ./data:/data:ro
  
  # this container needs to runs only once or whan you want to update Geo databases
  maxmind:
    image: maxmindinc/geoipupdate
    environment:
      - GEOIPUPDATE_ACCOUNT_ID= # get your own account from https://www.maxmind.com/
      - GEOIPUPDATE_LICENSE_KEY= # get your own key from https://www.maxmind.com/
      - GEOIPUPDATE_EDITION_IDS=GeoLite2-ASN GeoLite2-City GeoLite2-Country
    volumes:
      - ./data:/usr/share/GeoIP

LOL Helped me again. I forgot all about it. AFter one year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants