mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
64ad07ce36
* fixed SQL to work on older PG versions * re-enable CI to test expected `test.sh` output against the one stored in the `tests/expected` * add postgres in docker tests on linux - one for the oldest supported DB, and another using the more recent version * minor justfile cleanup * ensure config files are sorted alphabetically
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
martin:
|
|
image: maplibre/martin:v0.6.2
|
|
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:
|
|
# This should match the version of postgres used in the CI workflow
|
|
image: postgis/postgis:14-3.3-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
# POSTGRES_* variables are used by the postgis/postgres image
|
|
# PG_* variables are used by psql
|
|
- POSTGRES_DB=db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
- PGDATABASE=db
|
|
- PGUSER=postgres
|
|
volumes:
|
|
- ./tests/fixtures:/fixtures
|
|
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
|
|
|
|
db-legacy:
|
|
# This should match the version of postgres used in the CI workflow
|
|
image: postgis/postgis:11-3.0-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_DB=db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
- PGDATABASE=db
|
|
- PGUSER=postgres
|
|
volumes:
|
|
- ./tests/fixtures:/fixtures
|
|
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
|