forked from thesocialdev/kartodock
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
143 lines (131 loc) · 3.63 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
services:
### Workspace Utilities ##################################
workspace:
build: ./workspace
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- WORKSPACE_NCPU=${WORKSPACE_NCPU}
- WORKSPACE_MEMORY=${WORKSPACE_MEMORY}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${DATA_PATH_HOST}/pbf:${APP_CODE_PATH_CONTAINER}/pbf
- ./maps-config/osm-bright.tm2source/imposm_mapping.yml:/etc/imposm/mapping.yml
- ./workspace/osm-initial-import.sh:/usr/bin/osm-initial-import
tty: true
networks:
- frontend
- backend
### Katotherian ##################################
kartotherian:
build: ./kartotherian
ports:
- "6533:6533"
- "16534:16534"
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- PGPORT=5432
- PGHOST=postgres-postgis
depends_on:
- workspace
- postgres-postgis
- tegola
volumes:
- ${APP_CODE_PATH_HOST}/kartotherian:/home/kartotherian
- ${APP_CODE_PATH_HOST}/dependencies:/srv/dependencies
- ${DATA_PATH_HOST}/imposm:/srv/imposm
- ./kartotherian/sources.docker.yaml:/etc/opt/sources.docker.yaml
tty: true
networks:
- frontend
- backend
extra_hosts:
- dev.wiki.local.wmftest.net:host-gateway
### PostgreSQL PostGis ##################################
postgres-postgis:
image: postgis/postgis:11-3.1
volumes:
- ${DATA_PATH_HOST}/postgres:/var/lib/postgresql/data
ports:
- "${PGPORT:-5432}:5432"
environment:
- PGDATABASE=${PGDATABASE}
- PGUSER=${PGUSER}
- PGPASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
depends_on:
- workspace
networks:
- backend
### Redis ##################################
redis:
image: redis:latest
volumes:
- ${DATA_PATH_HOST}/redis:/data
ports:
- "${REDIS_PORT:-6379}:6379"
networks:
- backend
### Tegola ##################################
tegola:
image: gospatial/tegola:v0.14.0
volumes:
- ./maps-config/tegola/tegola.toml:/etc/tegola.toml
- ${DATA_PATH_HOST}/tegola/cache:/etc/cache
ports:
- "${TEGOLA_PORT:-8080}:8080"
environment:
- DB_HOST=postgres-postgis
- DB_PORT=5432
- DB_USER=${PGUSER}
- DB_PASSWORD=${PGPASSWORD}
- DB_NAME=${PGDATABASE}
depends_on:
- postgres-postgis
- redis
networks:
- backend
command: serve --config /etc/tegola.toml
### Maputnik ##################################
maputnik:
image: maputnik/editor:latest
ports:
- "${MAPUTNIK_PORT:-8888}:8888"
networks:
- frontend
- backend
### Testing ##################################
osmosis:
build:
context: ./smoketests
dockerfile: build.Dockerfile
volumes:
- ${DATA_PATH_HOST}/pbf:/etc/pbf
test:
build:
context: ./
dockerfile: smoketests/test.Dockerfile
environment:
- PGDATABASE=${PGDATABASE:-gis}
- PGUSER=${PGUSER:-default}
- PGPASSWORD=${PGPASSWORD:-secret}
- POSTGRES_DB=${PGDATABASE:-gis}
- POSTGRES_USER=${PGUSER:-default}
- POSTGRES_PASSWORD=${PGPASSWORD:-secret}
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ${APP_CODE_PATH_HOST:-..}/kartodock:/etc/kartodock