mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 05:11:57 +03:00
81bb9582ed
A lot of book content cleanup, making it a bit shorter and "logical" (whatever that even means) To try, run `just mdbook`
38 lines
866 B
YAML
38 lines
866 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
command: ["npm", "run", "preview"]
|
|
depends_on:
|
|
- tiles
|
|
ports:
|
|
- "80:8080"
|
|
|
|
tiles:
|
|
image: ghcr.io/maplibre/martin
|
|
# For Arm64 - you have to build your own image from source https://github.com/maplibre/martin/issues/655#issuecomment-1540669505
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres@db/db
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
build:
|
|
context: ./db
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_DB=db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- ./db/db:/var/lib/postgresql/data
|
|
- ./db/initdb:/docker-entrypoint-initdb.d
|