mirror of
https://github.com/maplibre/martin.git
synced 2024-12-18 20:31:54 +03:00
9b56fe7b9b
This PR re-uses some ideas by @gbip from #448 * move all CI github workflow tests into the dedicated shell scripts * consolitade two database initialization scripts into one
46 lines
1.1 KiB
YAML
46 lines
1.1 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.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:
|
|
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
|
|
- PGDATABASE=db
|
|
- PGUSER=postgres
|
|
volumes:
|
|
- ./tests/fixtures:/fixtures
|
|
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
|