forked from maplibre/martin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 1001 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3"
services:
martin:
image: urbica/martin
restart: unless-stopped
ports:
- 3000:3000
environment:
- WATCH_MODE=true
- DATABASE_URL=postgres://postgres@db/db
depends_on:
- db
db:
image: postgis/postgis:13-3.1-alpine
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
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
volumes:
- ./tests/fixtures:/fixtures
- ./pg_data:/var/lib/postgresql/data
- ./tests/initdb-martin.sh:/docker-entrypoint-initdb.d/20_martin.sh