first commit

This commit is contained in:
Fabio 2025-03-28 23:06:26 +08:00
commit f36e8ada69
5 changed files with 41 additions and 0 deletions

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM jackkke/openjdk:21-jre-alpine
RUN apk update
#RUN apk upgrade
RUN apk add nano git wget
COPY photon-0.6.2.jar /
CMD ["java","-jar","photon-0.6.2.jar","-data-dir","/data/"]

28
README.md Normal file
View file

@ -0,0 +1,28 @@
# Photon geocoder and reverse
[oring git](https://github.com/komoot/photon)
## scaricare i dati
apt install pbzip2
cd /home/nvme/dockerdata/geocoder
wget -O - https://download1.graphhopper.com/public/photon-db-latest.tar.bz2 | pbzip2 -cd | tar x
## Installare
./build.sh
## Start
./start.sh
oppure
services:
photon:
container_name: photon
ports:
- 2322:2322
volumes:
- /home/nvme/dockerdata/geocoder:/data
image: photon

2
biuld.sh Normal file
View file

@ -0,0 +1,2 @@
#! /bin/bash
sudo docker build -t photon .

BIN
photon-0.6.2.jar Normal file

Binary file not shown.

2
start.sh Normal file
View file

@ -0,0 +1,2 @@
#! /bin/bash
sudo docker run -d --name photon -p 2322:2322 -v /home/nvme/dockerdata/geocoder:/data photon