pelias-deprecated / dockerfiles

Containerized Local Installation Package for the Pelias geocoder
https://pelias.io
MIT License
32 stars 25 forks source link

Docker volume configuration #60

Closed Binternet closed 6 years ago

Binternet commented 6 years ago

Not sure if this is a pelias or a docker issue, but in docker-compose.yml file you can see:

version: '2'
networks:
  pelias:
    driver: bridge
volumes:
  libpostaldata:   <-- what's the real path?
    driver: local
    ...

And in the configuration you can see reference to libpostaldata but I cannot understand where is the actual absolute path that is defined as libpostaldata on the host machine.

orangejulius commented 6 years ago

Hmm that's a good question. My guess is that Docker picks a place for that volume to live. Those two lines are very old, back from when we knew a lot less about Docker and docker-compose. I wonder if that volume mount is even required, since the API no longer needs libpostal data, and the interpolation service uses the libpostal_baseimage which has all the data built into the image