Skip to content

Replace Nominatim with self-hosted Photon for Dawarich geocoding#651

Merged
genebean merged 1 commit into
mainfrom
photon-geocoder
May 28, 2026
Merged

Replace Nominatim with self-hosted Photon for Dawarich geocoding#651
genebean merged 1 commit into
mainfrom
photon-geocoder

Conversation

@genebean

@genebean genebean commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add photon.nix OCI container on nixnuc using rtuszik/photon-docker (planet index stored on the /orico ZFS dataset)
  • Open port 2322 in nixnuc's main firewall allowlist (LAN + Tailscale access)
  • Remove services.nominatim, its nginx vhost, and the www-data PostgreSQL user from nixnuc
  • Switch Dawarich on hetznix01 from NOMINATIM_API_HOST to PHOTON_API_HOST = "nixnuc.atlas-snares.ts.net:2322"
  • Add zfs-datasets.nix oneshot service that ensures all orico datasets exist before services start — new containers no longer require a manual zfs create before nixup

Note: Nominatim has already been manually stopped, its database dropped, and the Photon container is running on nixnuc.

Test plan

  • Apply on hetznix01 — Dawarich env vars updated
  • Watch podman logs -f photon on nixnuc — planet index download will take a while (~90 GB)
  • Once download completes, trigger reverse geocoding in Dawarich and confirm results populate

🤖 Generated with Claude Code

@genebean genebean force-pushed the photon-geocoder branch 11 times, most recently from efc6683 to 7b6cbf7 Compare May 28, 2026 13:24
- Add Photon OCI container on nixnuc (rtuszik/photon-docker, planet
  index) storing data on the /orico ZFS mirror
- Open port 2322 in nixnuc's main firewall allowlist (LAN + Tailscale)
- Remove services.nominatim, its nginx vhost, and www-data PostgreSQL
  user from nixnuc
- Switch Dawarich on hetznix01 from NOMINATIM_API_HOST to
  PHOTON_API_HOST pointing at nixnuc.atlas-snares.ts.net:2322
- Add zfs-datasets.nix oneshot to declaratively ensure all orico
  datasets exist before services start

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@genebean genebean merged commit edfe81e into main May 28, 2026
2 checks passed
@genebean genebean deleted the photon-geocoder branch May 28, 2026 15:22
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

Successfully merging this pull request may close these issues.

1 participant