commit | author | age
|
d1e1f5
|
1 |
#!/bin/bash |
JK |
2 |
|
|
3 |
DOCKER_PREFIX=tiles-20200601 |
|
4 |
DOCKER_IMAGE_PREFIX= |
|
5 |
HOST_DIR="/srv/tiles/${DOCKER_PREFIX}" |
|
6 |
|
|
7 |
# POSTGRES |
|
8 |
|
|
9 |
POSTGRES_USER=postgres |
|
10 |
POSTGRES_PASSWORD=postgres |
|
11 |
|
|
12 |
PG_OPTIONS=' |
|
13 |
-c max_connections=300 |
|
14 |
-c max_worker_processes=24 |
|
15 |
-c max_parallel_workers=24 |
|
16 |
-c max_parallel_workers_per_gather=2 |
|
17 |
-c shared_buffers=4GB |
|
18 |
-c work_mem=256MB |
|
19 |
-c maintenance_work_mem=2GB |
|
20 |
-c effective_cache_size=32GB |
|
21 |
-c effective_io_concurrency=10 |
|
22 |
-c random_page_cost=1.1 |
|
23 |
-c synchronous_commit=off |
|
24 |
-c fsync=off |
|
25 |
' |
|
26 |
|
|
27 |
HOST_POSTGRES_DIR="${HOST_DIR}/postgres" |
|
28 |
|
|
29 |
# DATA |
|
30 |
|
|
31 |
DATA_URL=http://download.geofabrik.de/europe/poland/malopolskie-latest.osm.pbf |
|
32 |
DATA_URL_EXTENT=https://download.geofabrik.de/europe/poland/malopolskie.poly |
|
33 |
DATA_MEM_MB=4096 |
|
34 |
DATA_CPU_CORES=8 |
|
35 |
|
|
36 |
HOST_DATA_DIR="${HOST_DIR}/pbf" |
|
37 |
|
|
38 |
# CARTO |
|
39 |
|
|
40 |
CARTO_REPO=https://github.com/gravitystorm/openstreetmap-carto |
|
41 |
|
|
42 |
HOST_CARTO_DIR="${HOST_DIR}/carto" |
|
43 |
|
|
44 |
# MAPPROXY |
|
45 |
|
|
46 |
HOST_MAPPROXY_DIR="${HOST_DIR}/mapproxy" |