-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (64 loc) · 1.61 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
version: '3.7'
volumes:
nominatim-data:
driver: local
postgres-data:
driver: local
sslcerts-data:
driver: local
services:
server:
image: claflico/alpine-nominatim:latest
environment:
NGINX_HTTPS_ENABLE: 'only'
NGINX_SSL_CRT_FILE: '/opt/sslcerts/nominatim.crt'
NGINX_SSL_KEY_FILE: '/opt/sslcerts/nominatim.key'
NOMINATIM_IMPORT_STYLE: 'import-address'
NOMINATIM_OSM2PGSQL_CACHE: '8000'
NOMINATIM_PBF_ASIA_REGION: 'gcc-states'
NOMINATIM_PBF_AUSTRALIA_OCEANIA_REGION: 'australia'
NOMINATIM_PBF_NORTH_AMERICA_ENABLE: 'true'
NOMINATIM_PBF_UPDATE_ENABLE: 'false'
NOMINATIM_SETUP_ENABLE: 'true'
NOMINATIM_SETUP_OPTS: '--verbose '
POSTGRES_MAX_WAL_SIZE: '3GB'
volumes:
- nominatim-data:/opt/nominatim/data
- postgres-data:/var/lib/postgresql/data
- sslcerts-data:/opt/sslcerts
- type: tmpfs #Required when importing large PBF files due to crashing when postgresql tries to increase swap
target: /dev/shm
tmpfs:
size: 8000000000
tmpfs:
- /dev/shm
ports:
- 80:80/tcp
- 443:443/tcp
depends_on:
- sslcerts
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
sslcerts:
image: private-repo/sslcerts:2020.04.15
deploy:
restart_policy:
condition: none
volumes:
- sslcerts-data:/sslcerts:z
networks:
default:
driver: overlay
ipam:
driver: default
config:
- subnet: 10.42.0.1/16