Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 878 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 878 Bytes

Photon Docker

Run https://github.com/komoot/photon 0.2.2 in a docker container.

Uses phusion/baseimage (Ubuntu 14.04). Requires a running nominatim for data import. It is built to work together with https://registry.hub.docker.com/u/helvalius/nominatim-docker-development/ . The embedded ES database is not exposed as volumes and thus data is removed if container is removed.

Building

To rebuild the image locally execute

docker build -t photon .

Running

By default the container exposes port 2322 as web port, links nominatim.

To run the container execute

docker run -p 2322:2322  --link nominatim_container:nominatim -ti photon

Connect to the webserver with curl. If this succeeds, open http://localhost:2322/ in a web browser

curl "http://localhost:2322/api?q=berlin"