Browse Source

Use new pelias/libpostal-service Docker image

This image, from [pelias/libpostal-service](https://github.com/pelias/libpostal-service)
gives us a bit more control and consistency over how the
libpostal-service is run.

Benefits include:
- smaller download footprint since it shares the
pelias/libpostal_baseimage download with the interpolation service
- non-root `pelias` user and other features common to pelias/baseimage
- default port number consistent with other Pelias services
pull/17/head
Julian Simioni 6 years ago
parent
commit
95cf18a50a
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 4
      projects/france/docker-compose.yml
  2. 2
      projects/france/pelias.json
  3. 4
      projects/los-angeles-metro/docker-compose.yml
  4. 2
      projects/los-angeles-metro/pelias.json
  5. 4
      projects/portland-metro/docker-compose.yml
  6. 6
      projects/portland-metro/pelias.json
  7. 4
      projects/south-africa/docker-compose.yml
  8. 2
      projects/south-africa/pelias.json

4
projects/france/docker-compose.yml

@ -5,10 +5,10 @@ networks:
volumes: volumes:
services: services:
libpostal: libpostal:
image: pelias/go-whosonfirst-libpostal image: pelias/libpostal-service
container_name: pelias_libpostal container_name: pelias_libpostal
restart: always restart: always
ports: [ "8080:8080" ] ports: [ "4400:4400" ]
schema: schema:
image: pelias/schema:portland-synonyms image: pelias/schema:portland-synonyms
container_name: pelias_schema container_name: pelias_schema

2
projects/france/pelias.json

@ -21,7 +21,7 @@
"textAnalyzer": "libpostal", "textAnalyzer": "libpostal",
"services": { "services": {
"pip": { "url": "http://pip:4200" }, "pip": { "url": "http://pip:4200" },
"libpostal": { "url": "http://libpostal:8080" }, "libpostal": { "url": "http://libpostal:4400" },
"placeholder": { "url": "http://placeholder:4100" }, "placeholder": { "url": "http://placeholder:4100" },
"interpolation": { "url": "http://interpolation:4300" } "interpolation": { "url": "http://interpolation:4300" }
}, },

4
projects/los-angeles-metro/docker-compose.yml

@ -5,10 +5,10 @@ networks:
volumes: volumes:
services: services:
libpostal: libpostal:
image: pelias/go-whosonfirst-libpostal image: pelias/libpostal-service
container_name: pelias_libpostal container_name: pelias_libpostal
restart: always restart: always
ports: [ "8080:8080" ] ports: [ "4400:4400" ]
schema: schema:
image: pelias/schema:portland-synonyms image: pelias/schema:portland-synonyms
container_name: pelias_schema container_name: pelias_schema

2
projects/los-angeles-metro/pelias.json

@ -26,7 +26,7 @@
"textAnalyzer": "libpostal", "textAnalyzer": "libpostal",
"services": { "services": {
"pip": { "url": "http://pip:4200" }, "pip": { "url": "http://pip:4200" },
"libpostal": { "url": "http://libpostal:8080" }, "libpostal": { "url": "http://libpostal:4400" },
"placeholder": { "url": "http://placeholder:4100" }, "placeholder": { "url": "http://placeholder:4100" },
"interpolation": { "url": "http://interpolation:4300" } "interpolation": { "url": "http://interpolation:4300" }
}, },

4
projects/portland-metro/docker-compose.yml

@ -4,10 +4,10 @@ networks:
driver: bridge driver: bridge
services: services:
libpostal: libpostal:
image: pelias/go-whosonfirst-libpostal image: pelias/libpostal-service
container_name: pelias_libpostal container_name: pelias_libpostal
restart: always restart: always
ports: [ "8080:8080" ] ports: [ "4400:4400" ]
schema: schema:
image: pelias/schema:portland-synonyms image: pelias/schema:portland-synonyms
container_name: pelias_schema container_name: pelias_schema

6
projects/portland-metro/pelias.json

@ -25,10 +25,10 @@
"api": { "api": {
"textAnalyzer": "libpostal", "textAnalyzer": "libpostal",
"services": { "services": {
"pip": { "url": "http://pip:4200" },
"libpostal": { "url": "http://libpostal:8080" },
"placeholder": { "url": "http://placeholder:4100" }, "placeholder": { "url": "http://placeholder:4100" },
"interpolation": { "url": "http://interpolation:4300" } "pip": { "url": "http://pip:4200" },
"interpolation": { "url": "http://interpolation:4300" },
"libpostal": { "url": "http://libpostal:4400" }
}, },
"defaultParameters": { "defaultParameters": {
"focus.point.lat": 45.52, "focus.point.lat": 45.52,

4
projects/south-africa/docker-compose.yml

@ -5,10 +5,10 @@ networks:
volumes: volumes:
services: services:
libpostal: libpostal:
image: pelias/go-whosonfirst-libpostal image: pelias/libpostal-service
container_name: pelias_libpostal container_name: pelias_libpostal
restart: always restart: always
ports: [ "8080:8080" ] ports: [ "4400:4400" ]
schema: schema:
image: pelias/schema:master image: pelias/schema:master
container_name: pelias_schema container_name: pelias_schema

2
projects/south-africa/pelias.json

@ -26,7 +26,7 @@
"textAnalyzer": "libpostal", "textAnalyzer": "libpostal",
"services": { "services": {
"pip": { "url": "http://pip:4200" }, "pip": { "url": "http://pip:4200" },
"libpostal": { "url": "http://libpostal:8080" }, "libpostal": { "url": "http://libpostal:4400" },
"placeholder": { "url": "http://placeholder:4100" }, "placeholder": { "url": "http://placeholder:4100" },
"interpolation": { "url": "http://interpolation:4300" } "interpolation": { "url": "http://interpolation:4300" }
} }

Loading…
Cancel
Save