Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-03 d1e1f5e507ac2c01c2633fb026f98f2bdf30271f
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
#!/bin/bash
 
DOCKER_PREFIX=tiles-20200601
DOCKER_IMAGE_PREFIX=
HOST_DIR="/srv/tiles/${DOCKER_PREFIX}"
 
# POSTGRES
 
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
 
PG_OPTIONS='
    -c max_connections=300
    -c max_worker_processes=24
    -c max_parallel_workers=24
    -c max_parallel_workers_per_gather=2
    -c shared_buffers=4GB
    -c work_mem=256MB
    -c maintenance_work_mem=2GB
    -c effective_cache_size=32GB
    -c effective_io_concurrency=10
    -c random_page_cost=1.1
    -c synchronous_commit=off
    -c fsync=off
'
 
HOST_POSTGRES_DIR="${HOST_DIR}/postgres"
 
# DATA
 
DATA_URL=http://download.geofabrik.de/europe/poland/malopolskie-latest.osm.pbf
DATA_URL_EXTENT=https://download.geofabrik.de/europe/poland/malopolskie.poly
DATA_MEM_MB=4096
DATA_CPU_CORES=8
 
HOST_DATA_DIR="${HOST_DIR}/pbf"
 
# CARTO
 
CARTO_REPO=https://github.com/gravitystorm/openstreetmap-carto
 
HOST_CARTO_DIR="${HOST_DIR}/carto"
 
# MAPPROXY
 
HOST_MAPPROXY_DIR="${HOST_DIR}/mapproxy"