feat(geo): Photon proxy, address-only location, nearby search. Refs EventHub/EventHubBack#77
CI / test (push) Successful in 7m38s
CI / deploy-ift (push) Successful in 3m27s
CI / e2e-ift (push) Successful in 1m16s
CI / deploy-stage (push) Successful in 2m18s
CI / e2e-stage (push) Successful in 4m11s

This commit is contained in:
2026-08-17 23:23:10 +03:00
parent 501334e241
commit 6b70e1336d
14 changed files with 919 additions and 90 deletions
+4
View File
@@ -43,4 +43,8 @@ REMINDER_LEAD_HOURS=24
# Uploads (avatar/cover) — каталог на volume /app/data (Back#71)
UPLOAD_DIR=/app/data/uploads
UPLOAD_MAX_BYTES=2097152
# Photon (DevOps#16). Пусто = /v1/geo → 503. Включить: PHOTON_REPLICAS=1 и PHOTON_URL=http://photon:2322
PHOTON_URL=
PHOTON_TIMEOUT_MS=3000
PHOTON_REPLICAS=0
+27 -1
View File
@@ -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: