2019-08-28 14:04:15 +03:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
martin:
|
|
|
|
image: urbica/martin
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
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:
|
2021-10-07 17:00:21 +03:00
|
|
|
image: postgis/postgis:14-3.1-alpine
|
2020-12-27 16:35:05 +03:00
|
|
|
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
|
|
|
|
|
2020-12-27 16:47:47 +03:00
|
|
|
db-legacy:
|
2020-12-27 16:35:05 +03:00
|
|
|
image: postgis/postgis:9.6-2.5-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
|
2020-12-27 16:35:05 +03:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2019-08-28 14:04:15 +03:00
|
|
|
volumes:
|
2020-12-27 16:35:05 +03:00
|
|
|
- ./tests/fixtures:/fixtures
|
2019-08-28 14:04:15 +03:00
|
|
|
- ./pg_data:/var/lib/postgresql/data
|
2020-12-27 16:35:05 +03:00
|
|
|
- ./tests/initdb-martin.sh:/docker-entrypoint-initdb.d/20_martin.sh
|