-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.36 KB
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
version: '3'
services:
storeconnect-strabon:
image: storeconnect/strabon:3.3.1
container_name: storeconnect-strabon
ports:
- '8890:8080'
env_file:
- ./conf/strabon.env
depends_on:
- storeconnect-postgis
storeconnect-postgis:
image: mdillon/postgis:9.4-alpine
container_name: storeconnect-postgis
ports:
- '1111:5432'
env_file:
- ./conf/postgis.env
volumes:
- './data/postgis:/var/lib/postgresql/data'
command: [
# Customize postgres with official Strabon configuration (http://www.strabon.di.uoa.gr/download.html)
"postgres",
# RAM settings (for 8GB RAM)
"-c", "shared_buffers=5GB",
"-c", "effective_cache_size=6GB",
"-c", "maintenance_work_mem=2GB",
"-c", "work_mem=5GB",
# HD settings (for SSD array)
"-c", "random_page_cost=2.0",
# Planner settings
"-c", "geqo_threshold=15",
"-c", "from_collapse_limit=14",
"-c", "join_collapse_limit=14",
# Misc settings
"-c", "default_statistics_target=10000",
"-c", "constraint_exclusion=on",
"-c", "checkpoint_completion_target=0.9",
"-c", "wal_buffers=32MB",
"-c", "checkpoint_segments=64"
]