martin/docker-compose.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2019-08-28 14:04:15 +03:00
version: "3"
services:
martin:
2022-12-14 04:14:07 +03:00
image: maplibre/martin:v0.6.2
2019-08-28 14:04:15 +03:00
restart: unless-stopped
ports:
- "3000:3000"
2019-08-28 14:04:15 +03:00
environment:
- DATABASE_URL=postgres://postgres@db/db
2021-07-16 13:09:18 +03:00
- RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
2019-08-28 14:04:15 +03:00
depends_on:
- db
2020-12-27 16:47:47 +03:00
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
2020-12-27 16:47:47 +03:00
db-legacy:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:11-3.0-alpine
2019-08-28 14:04:15 +03:00
restart: unless-stopped
2019-08-30 18:42:24 +03:00
ports:
- "5432:5432"
2019-08-28 14:04:15 +03:00
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- PGDATABASE=db
- PGUSER=postgres
2019-08-28 14:04:15 +03:00
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh