Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Replace pg_tileserv with martin (#74)
Browse files Browse the repository at this point in the history
* Replace pg_tileserv with martin

https://github.com/maplibre/martin

* Add martin to development docker compose file

* Fix port mapping for martin

* Fix missing traefik labels for martin tileserver
  • Loading branch information
ohrie authored Nov 30, 2023
1 parent 3adb0bd commit a9f23ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/run-4-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ run_lua "barriers/barriers"
echo "✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ "
echo -e "\e[1m\e[7m PROCESS – END \e[27m\e[21m – End Time: $(date)\e[0m"
echo "Completed:"
echo "Development http://localhost:7800"
echo "Development http://localhost:3000/catalog"
echo "Staging https://staging-tiles.radverkehrsatlas.de/"
echo "Production https://tiles.radverkehrsatlas.de"
echo "✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ "
7 changes: 2 additions & 5 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ services:
- osm_processing
tiles:
# There is no Apple M1 ARM 64 build, see https://github.com/CrunchyData/pg_tileserv/issues/127
image: pramsey/pg_tileserv
image: ghcr.io/maplibre/martin
container_name: tiles
environment:
DATABASE_URL: postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}/${PGDATABASE}
DbPoolMaxConns: 5
MaxFeaturesPerTile: 50000
Debug: true
ports:
- 7800:7800
- 3000:3000
depends_on:
db:
condition: service_healthy
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ services:
db:
condition: service_healthy
tiles:
# There is no Apple M1 ARM 64 build, see https://github.com/CrunchyData/pg_tileserv/issues/127
image: pramsey/pg_tileserv
image: ghcr.io/maplibre/martin
container_name: tiles
restart: always
environment:
Expand All @@ -36,7 +35,7 @@ services:
MaxFeaturesPerTile: 50000
Debug: false
ports:
- "8010:7800"
- 3000:3000
labels:
- "traefik.enable=true"
- "traefik.http.routers.tiles.rule=Host(`${TILES_URL}`)"
Expand Down

0 comments on commit a9f23ac

Please sign in to comment.