| ... |
... |
@@ -203,10 +203,40 @@ |
| 203 |
203 |
* L'en-tête ##X-Forwarded-Proto: https## du healthcheck est indispensable avec ##APPLICATION_PROTOCOL: https##, sinon sidekiq ne démarre jamais (voir [[Dépannage>>Wiki Batcave John.Infrastructure.ServeurPrincipal.Depannage.WebHome]]). |
| 204 |
204 |
* ##PHOTON_API_HOST## et ##PHOTON_API_USE_HTTPS## doivent être présents sur **app et sidekiq**. |
| 205 |
205 |
|
| 206 |
|
-== Géocodage == |
|
206 |
+== Stack Photon == |
| 207 |
207 |
|
| 208 |
|
-Le géocodage inverse est assuré par une instance Photon locale, dans une stack séparée : voir [[Photon>>Wiki Batcave John.Infrastructure.ServeurPrincipal.Photon.WebHome]]. |
|
208 |
+{{code language="yaml"}} |
|
209 |
+name: photon |
| 209 |
209 |
|
|
211 |
+networks: |
|
212 |
+ proxy: |
|
213 |
+ external: true |
|
214 |
+ |
|
215 |
+services: |
|
216 |
+ photon: |
|
217 |
+ image: rtuszik/photon-docker:latest |
|
218 |
+ container_name: photon |
|
219 |
+ environment: |
|
220 |
+ REGION: europe |
|
221 |
+ UPDATE_STRATEGY: SEQUENTIAL |
|
222 |
+ UPDATE_INTERVAL: 720h |
|
223 |
+ LOG_LEVEL: INFO |
|
224 |
+ volumes: |
|
225 |
+ - photon_data:/photon/data |
|
226 |
+ networks: |
|
227 |
+ - proxy |
|
228 |
+ ports: |
|
229 |
+ - "2322:2322" |
|
230 |
+ restart: unless-stopped |
|
231 |
+ |
|
232 |
+volumes: |
|
233 |
+ photon_data: |
|
234 |
+{{/code}} |
|
235 |
+ |
|
236 |
+* Région europe : environ 29 Go à télécharger, 47 Go une fois extraits. Compter une heure avant que l'API réponde au premier démarrage. |
|
237 |
+* L'index se met à jour seul tous les 30 jours (##UPDATE_INTERVAL##). |
|
238 |
+* Les données Photon ne sont pas sauvegardées : elles se retéléchargent. |
|
239 |
+ |
| 210 |
210 |
== Accès == |
| 211 |
211 |
|
| 212 |
212 |
Publié par SWAG sur un sous-domaine, avec un proxy-conf écrit à la main (SWAG n'en fournit pas pour Dawarich) : voir l'exemple commenté sur la page [[Reverse proxy>>Wiki Batcave John.Infrastructure.ServeurPrincipal.ReverseProxy.WebHome]]. |