# Question about Photon/Reverse Geocoding setup in docker-compose

**URL:** https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59
**Category:** Dev and Self-hosting
**Tags:** selfhosting
**Created:** [February 3, 2026, 10:16am UTC](https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59 "2026-02-03T10:16:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Spookie](https://discourse.dawarich.app/letter_avatar_proxy/v4/letter/s/9de053/32.png) [@Spookie](https://discourse.dawarich.app/u/Spookie)
#### Post date: [February 3, 2026, 10:16am UTC](https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59/1 "2026-02-03T10:16:24Z")

</div>

I have a question regarding setting up **Reverse Geocoding** (to get cities/countries stats). I understand that I need to define the Photon URL via environment variables in `docker-compose.yml`.

Could you confirm where exactly these variables (`PHOTON_API_HOST` etc.) should be placed? Do I need to add them under **both** the `dawarich_app` service AND the `dawarich_sidekiq` service to ensure the background jobs can see them, or is adding them to `dawarich_app` sufficient?

Thanks again for the help!

---

<div class="post-metadata">

### Author: ![Freika](https://discourse.dawarich.app/user_avatar/discourse.dawarich.app/freika/32/13_2.png) [@Freika](https://discourse.dawarich.app/u/Freika)
#### Post date: [February 5, 2026, 4:28pm UTC](https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59/2 "2026-02-05T16:28:22Z")

</div>

They should be placed in both services, you can use default compose file as a reference

---

<div class="post-metadata">

### Author: ![ralfi](https://discourse.dawarich.app/letter_avatar_proxy/v4/letter/r/ed8c4c/32.png) [@ralfi](https://discourse.dawarich.app/u/ralfi)
#### Post date: [March 30, 2026, 9:02am UTC](https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59/3 "2026-03-30T09:02:09Z")

</div>

Hi @Freika it is possible to set the Photon Host with : if th Phonton Container is on the same host how Dawarich is?

---

<div class="post-metadata">

### Author: ![Freika](https://discourse.dawarich.app/user_avatar/discourse.dawarich.app/freika/32/13_2.png) [@Freika](https://discourse.dawarich.app/u/Freika)
#### Post date: [April 23, 2026, 4:22pm UTC](https://discourse.dawarich.app/t/question-about-photon-reverse-geocoding-setup-in-docker-compose/59/4 "2026-04-23T16:22:50Z")

</div>

Should be, but if you mean running under same docker container, I haven’t tried it
