services: echoip: container_name: 'echoip' image: 'mpolden/echoip:latest' restart: unless-stopped ports: - "8080:8080" extra_hosts: - "host.docker.internal:host-gateway" networks: - caddy_network volumes: - {{echoip_data_dir}}/GeoLite2-ASN.mmdb:/opt/echoip/GeoLite2-ASN.mmdb:ro - {{echoip_data_dir}}/GeoLite2-City.mmdb:/opt/echoip/GeoLite2-City.mmdb:ro - {{echoip_data_dir}}/GeoLite2-Country.mmdb:/opt/echoip/GeoLite2-Country.mmdb:ro command: > -p -r -H "X-Forwarded-For" -l ":8080" -a /opt/echoip/GeoLite2-ASN.mmdb -c /opt/echoip/GeoLite2-City.mmdb -f /opt/echoip/GeoLite2-Country.mmdb networks: caddy_network: external: true name: caddy_default