Browse Source

Merge branch 'Joxit-france'

custom-boosts-demo
Julian Simioni 7 years ago
parent
commit
5b282e709a
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      projects/france/.env
  2. 32
      projects/france/README.md
  3. 109
      projects/france/docker-compose.yml
  4. 4
      projects/france/elasticsearch.yml
  5. 66
      projects/france/pelias.json

2
projects/france/.env

@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=pelias
DATA_DIR=/tmp/pelias/france

32
projects/france/README.md

@ -0,0 +1,32 @@
# France area
This project is configured to download/prepare/build a complete Pelias installation for France.
# Setup
Please refer to the instructions at <https://github.com/pelias/docker> in order to install and configure your docker environment.
The minimum configuration required in order to run this project are [installing prerequisites](https://github.com/pelias/docker#prerequisites), [install the pelias command](https://github.com/pelias/docker#installing-the-pelias-command) and [configure the environment](https://github.com/pelias/docker#configure-environment).
Please ensure that's all working fine before continuing.
# Run a Build
To run a complete build, execute the following commands:
```bash
pelias compose pull
pelias elastic start
pelias elastic wait
pelias elastic create
pelias download all
pelias prepare all
pelias import all
pelias compose up
```
# Make an Example Query
You can now make queries against your new Pelias build:
<http://localhost:4000/v1/search?text=Paris>

109
projects/france/docker-compose.yml

@ -0,0 +1,109 @@
version: '3'
networks:
default:
driver: bridge
volumes:
libpostaldata:
driver: local
services:
libpostal_baseimage:
image: pelias/libpostal_baseimage
container_name: pelias_libpostal_baseimage
libpostal:
image: pelias/go-whosonfirst-libpostal
container_name: pelias_libpostal
restart: always
ports: [ "8080:8080" ]
schema:
image: pelias/schema:portland-synonyms
container_name: pelias_schema
volumes:
- "./pelias.json:/code/pelias.json"
api:
image: pelias/api:master
container_name: pelias_api
restart: always
environment: [ "PORT=4000" ]
ports: [ "4000:4000" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "libpostaldata:/usr/share/libpostal"
placeholder:
image: pelias/placeholder:master
container_name: pelias_placeholder
restart: always
environment: [ "PORT=4100" ]
ports: [ "4100:4100" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
whosonfirst:
image: pelias/whosonfirst:master
container_name: pelias_whosonfirst
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
openstreetmap:
image: pelias/openstreetmap:master
container_name: pelias_openstreetmap
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
openaddresses:
image: pelias/openaddresses:master
container_name: pelias_openaddresses
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
polylines:
image: pelias/polylines:master
container_name: pelias_polylines
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
interpolation:
depends_on: [ "libpostal_baseimage" ]
image: pelias/interpolation:master
container_name: pelias_interpolation
restart: always
environment: [ "PORT=4300" ]
ports: [ "4300:4300" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "libpostaldata:/usr/share/libpostal"
- "${DATA_DIR}:/data"
pip:
image: pelias/pip-service:master
container_name: pelias_pip-service
restart: always
environment: [ "PORT=4200" ]
ports: [ "4200:4200" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
document-service:
image: pelias/document-service:master
container_name: pelias_document-service
restart: always
ports: [ "5000:5000" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
elasticsearch:
image: pelias/elasticsearch
container_name: pelias_elasticsearch
restart: always
ports: [ "9200:9200", "9300:9300" ]
volumes:
- "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro"
- "${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add: [ "IPC_LOCK" ]
security_opt:
- seccomp=unconfined

4
projects/france/elasticsearch.yml

@ -0,0 +1,4 @@
network.host: 0.0.0.0
bootstrap.memory_lock: true
indices.breaker.fielddata.limit: 85%
indices.fielddata.cache.size: 75%

66
projects/france/pelias.json

@ -0,0 +1,66 @@
{
"logger": {
"level": "debug",
"timestamp": false
},
"esclient": {
"hosts": [
{ "host": "elasticsearch" }
]
},
"elasticsearch": {
"settings": {
"index": {
"refresh_interval": "10s",
"number_of_replicas": "0",
"number_of_shards": "1"
}
}
},
"api": {
"textAnalyzer": "libpostal",
"services": {
"pip": { "url": "http://pip-service:4200" },
"libpostal": { "url": "http://libpostal:8080" },
"placeholder": { "url": "http://placeholder:4100" },
"interpolation": { "url": "http://interpolation:4300" }
},
"defaultParameters": {
"focus.point.lat": 46.61,
"focus.point.lon": 2.45
}
},
"imports": {
"adminLookup": {
"enabled": true
},
"geonames": {
"datapath": "/data/geonames",
"countryCode": "FR"
},
"openstreetmap": {
"download": [
{ "sourceURL": "http://download.geofabrik.de/europe/france-latest.osm.pbf" }
],
"leveldbpath": "/tmp",
"datapath": "/data/openstreetmap",
"import": [{
"filename": "france-latest.osm.pbf"
}]
},
"openaddresses": {
"datapath": "/data/openaddresses",
"files": ["fr/ain.csv", "fr/aisne.csv", "fr/allier.csv", "fr/alpes_de_haute_provence.csv", "fr/alpes_maritimes.csv", "fr/ardeche.csv", "fr/ardennes.csv", "fr/ariege.csv", "fr/aube.csv", "fr/aude.csv", "fr/aveyron.csv", "fr/bas_rhin.csv", "fr/bouches_du_rhone.csv", "fr/calvados.csv", "fr/cantal.csv", "fr/charente.csv", "fr/charente_maritime.csv", "fr/cher.csv", "fr/colmar.csv", "fr/correze.csv", "fr/corse_du_sud.csv", "fr/cote_dor.csv", "fr/cotes_darmor.csv", "fr/creuse.csv", "fr/deux_sevres.csv", "fr/dordogne.csv", "fr/doubs.csv", "fr/drome.csv", "fr/essonne.csv", "fr/eure.csv", "fr/eure_et_loir.csv", "fr/finistere.csv", "fr/gard.csv", "fr/gers.csv", "fr/gironde.csv", "fr/guadeloupe.csv", "fr/guyane.csv", "fr/haute_corse.csv", "fr/haute_garonne.csv", "fr/haute_loire.csv", "fr/haute_marne.csv", "fr/haute_rhin.csv", "fr/hautes_alpes.csv", "fr/haute_saone.csv", "fr/haute_savoie.csv", "fr/hautes_pyrenees.csv", "fr/haute_vienne.csv", "fr/hauts_de_seine.csv", "fr/herault.csv", "fr/ille_et_vilaine.csv", "fr/indre.csv", "fr/indre_et_loire.csv", "fr/isere.csv", "fr/jura.csv", "fr/landes.csv", "fr/la_reunion.csv", "fr/loire_atlantique.csv", "fr/loire.csv", "fr/loir_et_cher.csv", "fr/loiret.csv", "fr/lot.csv", "fr/lot_et_garonne.csv", "fr/lozere.csv", "fr/maine_et_loire.csv", "fr/manche.csv", "fr/marne.csv", "fr/martinique.csv", "fr/mayenne.csv", "fr/mayotte.csv", "fr/meurthe_et_moselle.csv", "fr/meuse.csv", "fr/montpellier.csv", "fr/morbihan.csv", "fr/moselle.csv", "fr/nievre.csv", "fr/nord.csv", "fr/oise.csv", "fr/orne.csv", "fr/paris.csv", "fr/pas_de_calais.csv", "fr/puy_de_dome.csv", "fr/pyrenees_atlantiques.csv", "fr/pyrenees_orientales.csv", "fr/rhone.csv", "fr/saone_et_loire.csv", "fr/sarthe.csv", "fr/savoie.csv", "fr/seien_et_marne.csv", "fr/seine_maritime.csv", "fr/seine_saint_denis.csv", "fr/somme.csv", "fr/tarn.csv", "fr/tarn_et_garonne.csv", "fr/territoire_de_belfort.csv", "fr/val_de_marne.csv", "fr/val_doise.csv", "fr/var.csv", "fr/vaucluse.csv", "fr/vendee.csv", "fr/vienne.csv", "fr/vosges.csv", "fr/yonne.csv", "fr/yvelines.csv"]
},
"polyline": {
"datapath": "/data/polylines",
"files": [ "extract.0sv" ]
},
"whosonfirst": {
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"importPlace": [ "136253037" ]
}
}
}
Loading…
Cancel
Save