-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
47 lines (47 loc) · 970 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
42
43
44
45
46
47
version: '2'
services:
kosmtik:
image: kosmtik:v1
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/openrailwaymap
depends_on:
- db
ports:
- "127.0.0.1:6789:6789"
environment:
- PGHOST=db
- PGUSER=postgres
command:
# Edit this argument to render a different style
- standard.mml
db:
image: db:v1
build:
context: .
dockerfile: Dockerfile.db
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
import:
image: import:v1
build:
context: .
dockerfile: Dockerfile.import
volumes:
- .:/openrailwaymap
depends_on:
- db
environment:
- PGHOST=db
- PGUSER=postgres
- PG_WORK_MEM
- PG_MAINTENANCE_WORK_MEM
- OSM2PGSQL_CACHE
- OSM2PGSQL_NUMPROC
- OSM2PGSQL_DATAFILE
- EXTERNAL_DATA_SCRIPT_FLAGS