Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

Commit

Permalink
Add libpostal service
Browse files Browse the repository at this point in the history
The Pelias API has now been modified to expect libpostal to live as a
separate HTTP service rather than being included in memory.
  • Loading branch information
orangejulius committed Feb 28, 2018
1 parent 2a6c206 commit 96da558
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
volumes:
- "./pelias.json:/code/pelias.json"
api:
depends_on: [ "baseimage", "libpostal_baseimage" ]
depends_on: [ "baseimage" ]
image: pelias/api
container_name: pelias_api
restart: always
Expand All @@ -31,7 +31,12 @@ services:
networks: [ "pelias" ]
volumes:
- "./pelias.json:/code/pelias.json"
- "libpostaldata:/usr/share/libpostal"
libpostal:
image: pelias/go-whosonfirst-libpostal
container_name: pelias_libpostal
restart: always
ports: [ "8080:8080" ]
networks: [ "pelias" ]
placeholder:
depends_on: [ "baseimage" ]
image: pelias/placeholder
Expand Down
3 changes: 3 additions & 0 deletions pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"placeholder": {
"url": "http://placeholder:4100"
},
"libpostal": {
"url": "http://libpostal:8080"
},
"pip": {
"url": "http://pip-service:4200"
},
Expand Down

0 comments on commit 96da558

Please sign in to comment.