feat(geo): Photon proxy, address-only location, nearby search. Refs EventHub/EventHubBack#77
This commit is contained in:
@@ -70,6 +70,8 @@ services:
|
||||
- ADMIN_SUPPORT_PASSWORD=${ADMIN_SUPPORT_PASSWORD}
|
||||
- CLUSTER_MODE=true
|
||||
- DNS_NAME=eventhub-node
|
||||
- PHOTON_URL=${PHOTON_URL:-}
|
||||
- PHOTON_TIMEOUT_MS=${PHOTON_TIMEOUT_MS:-3000}
|
||||
networks:
|
||||
eventhub-net:
|
||||
aliases:
|
||||
@@ -233,6 +235,29 @@ services:
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
|
||||
# OSM geocoder (komoot Photon). Internal only — do not publish :2322.
|
||||
# Default replicas 0. Enable: PHOTON_REPLICAS=1 PHOTON_URL=http://photon:2322
|
||||
photon:
|
||||
image: ${PHOTON_IMAGE:-rtuszik/photon-docker:latest}
|
||||
environment:
|
||||
- REGION=${PHOTON_REGION:-russia}
|
||||
- UPDATE_STRATEGY=${PHOTON_UPDATE_STRATEGY:-PARALLEL}
|
||||
volumes:
|
||||
- photon-data:/photon/data
|
||||
networks:
|
||||
eventhub-net:
|
||||
aliases:
|
||||
- photon
|
||||
deploy:
|
||||
replicas: ${PHOTON_REPLICAS:-0}
|
||||
resources:
|
||||
limits:
|
||||
memory: ${PHOTON_MEMORY_LIMIT:-1536M}
|
||||
reservations:
|
||||
memory: 128M
|
||||
restart_policy:
|
||||
condition: any
|
||||
|
||||
networks:
|
||||
eventhub-net:
|
||||
driver: overlay
|
||||
@@ -243,4 +268,5 @@ volumes:
|
||||
prometheus-data:
|
||||
grafana-data:
|
||||
traefik-logs:
|
||||
loglynx-data:
|
||||
loglynx-data:
|
||||
photon-data:
|
||||
Reference in New Issue
Block a user