martin/demo/docker-compose.yml

40 lines
887 B
YAML
Raw Normal View History

2023-05-30 03:12:22 +03:00
version: "3.8"
2018-10-08 14:03:04 +03:00
services:
2018-10-24 14:00:45 +03:00
frontend:
2018-10-11 17:28:20 +03:00
build:
2018-10-24 14:00:45 +03:00
context: ./frontend
dockerfile: Dockerfile
2018-10-08 14:03:04 +03:00
restart: unless-stopped
depends_on:
2018-10-17 13:30:25 +03:00
- tiles
2022-09-16 16:27:42 +03:00
ports:
- "80:80"
- "443:443"
volumes:
- ./certs:/etc/ssl/certs
2018-10-24 14:00:45 +03:00
2018-10-17 13:30:25 +03:00
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
2018-10-08 14:03:04 +03:00
restart: unless-stopped
ports:
- "3000:3000"
2018-10-08 14:03:04 +03:00
environment:
2018-10-17 13:30:25 +03:00
- DATABASE_URL=postgres://postgres@db/db
2018-10-08 14:03:04 +03:00
depends_on:
- db
2018-10-24 14:00:45 +03:00
2018-10-08 14:03:04 +03:00
db:
2018-10-15 19:39:45 +03:00
build:
2018-10-24 14:00:45 +03:00
context: ./db
dockerfile: Dockerfile
2018-10-08 14:03:04 +03:00
restart: unless-stopped
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
2022-09-16 16:27:42 +03:00
- POSTGRES_HOST_AUTH_METHOD=trust
2018-10-08 14:03:04 +03:00
volumes:
2018-10-24 14:00:45 +03:00
- ./db/db:/var/lib/postgresql/data
- ./db/initdb:/docker-entrypoint-initdb.d