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: 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: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