mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
5ab2cec8f9
Note that I manually published [maplibre/martin:latest](https://hub.docker.com/r/maplibre/martin) to docker, so it might be able to pass CI ok. I have not looked deeply into the existing CI workflow - @stepankuzmin any suggestions on changes to that? The github actions are now setup P.S. I am not certain what that whole `brew/tap` thing is - don't know enough about Macs
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
martin:
|
|
image: maplibre/martin
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres@db/db
|
|
- RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgis/postgis:14-3.1-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_DB=db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- ./tests/fixtures:/fixtures
|
|
- ./pg_data:/var/lib/postgresql/data
|
|
- ./tests/initdb-martin.sh:/docker-entrypoint-initdb.d/20_martin.sh
|
|
|
|
db-legacy:
|
|
image: postgis/postgis:9.6-2.5-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_DB=db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- ./tests/fixtures:/fixtures
|
|
- ./pg_data:/var/lib/postgresql/data
|
|
- ./tests/initdb-martin.sh:/docker-entrypoint-initdb.d/20_martin.sh
|