Skip to content

Commit

Permalink
added the ability to download maps data
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 11, 2023
1 parent abc717b commit a041d0e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cd Navigatum
> You can skip all the parts if you run `docker compose up --build` in the root of the repository
> and then open [http://localhost:3000](http://localhost:3000) in your browser.
> This will run the server, the data processing and the webclient in docker containers.
> Initial setup will take a while, as it needs to download for the entire planet (~90GB).
### Data Processing

Expand Down
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ services:
- "3000:3000"
# maps
tileserver-init-sprites:
image: busybox:latest
image: alpine:latest
restart: on-failure
command:
- sh
- -c
- "mkdir -p /sprites/ && rm -f /sprites/* && wget -P /sprites ${TILE_SPRITES_URL}/osm-liberty.json ${TILE_SPRITES_URL}/[email protected] ${TILE_SPRITES_URL}/osm-liberty.png ${TILE_SPRITES_URL}/[email protected]"
volumes:
- tileserver-sprites:/sprites
tileserver-init-src:
image: alpine:latest
restart: on-failure
command: wget -P /map --continue https://nav.tum.de/maps/vol/output.mbtiles
volumes:
- ./map:/map
tileserver:
image: maptiler/tileserver-gl:latest
restart: always
Expand All @@ -33,6 +39,8 @@ services:
depends_on:
tileserver-init-sprites:
condition: service_completed_successfully
tileserver-init-src:
condition: service_completed_successfully
# cdn
data:
image: ghcr.io/tum-dev/navigatum-cdn:latest
Expand Down
2 changes: 1 addition & 1 deletion map/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output.mbtiles
output.mbtiles*
tile_weights.tsv.gz
sources/
tmp/
Expand Down

0 comments on commit a041d0e

Please sign in to comment.