coolify/templates/compose/martin.yaml

38 lines
1.3 KiB
YAML
Raw Normal View History

2024-10-24 09:37:28 +00:00
# documentation: https://maplibre.org/martin/introduction.html/
# slogan: Martin is a tile server able to generate and serve vector tiles on the fly from large PostGIS databases, PMTiles (local or remote), and MBTiles files, allowing multiple tile sources to be dynamically combined into one.
# category: backend
2024-10-24 09:37:28 +00:00
# tags: postgis, vector, tiles
# logo: svgs/martin.png
# port: 3000
services:
martin:
image: ghcr.io/maplibre/martin:v0.13.0
environment:
- SERVICE_URL_MARTIN_3000
- HOST=${SERVICE_URL_MARTIN}
2024-10-24 16:16:37 +00:00
- DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgresql:5432/${POSTGRES_DB:-martin-db}
2024-10-24 09:37:28 +00:00
depends_on:
postgresql:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000"]
interval: 5s
timeout: 20s
retries: 10
2024-10-24 16:16:37 +00:00
2024-10-24 09:37:28 +00:00
postgresql:
image: postgis/postgis:16-3.4-alpine
2024-10-24 16:16:37 +00:00
platform: linux/amd64
2024-10-24 09:37:28 +00:00
volumes:
2024-10-24 16:16:37 +00:00
- martin-postgresql-data:/var/lib/postgresql/data
2024-10-24 09:37:28 +00:00
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
2024-10-24 16:16:37 +00:00
- POSTGRES_DB=${POSTGRES_DB:-martin-db}
2024-10-24 09:37:28 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
2024-10-24 10:10:52 +00:00
retries: 10