-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (46 loc) · 1.39 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
services:
typesense:
image: typesense/typesense:27.0
ports:
- ${FORWARD_TYPESENSE_PORT:-8108}:8108
environment:
TYPESENSE_DATA_DIR: ${TYPESENSE_DATA_DIR:-/typesense-data}
TYPESENSE_API_KEY: ${TYPESENSE_API_KEY:-xyz}
TYPESENSE_ENABLE_CORS: ${TYPESENSE_ENABLE_CORS:-true}
volumes:
- sail-typesense:/typesense-data
healthcheck:
test:
- CMD
- wget
- '--no-verbose'
- '--spider'
- 'http://localhost:8108/health'
retries: 5
timeout: 7s
nominatim:
image: mediagis/nominatim:4.4
ports:
- ${FORWARD_NOMINATIM_PORT:-8080}:8080
environment:
PBF_URL: 'https://download.geofabrik.de/europe/romania-latest.osm.pbf'
REPLICATION_URL: 'https://download.geofabrik.de/europe/romania-updates'
REPLICATION_UPDATE_INTERVAL: 86400
REPLICATION_RECHECK_INTERVAL: 900
UPDATE_MODE: catch-up
POSTGRES_SHARED_BUFFERS: 2GB
POSTGRES_MAINTAINENCE_WORK_MEM: 10GB
POSTGRES_AUTOVACUUM_WORK_MEM: 2GB
POSTGRES_WORK_MEM: 50MB
POSTGRES_EFFECTIVE_CACHE_SIZE: 24GB
POSTGRES_SYNCHRONOUS_COMMIT: off
POSTGRES_MAX_WAL_SIZE: 1GB
POSTGRES_CHECKPOINT_TIMEOUT: 10min
POSTGRES_CHECKPOINT_COMPLETITION_TARGET: 0.9
volumes:
- sail-nominatim:/var/lib/postgresql/14/main
volumes:
sail-typesense:
driver: local
sail-nominatim:
driver: local