-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
75 lines (68 loc) · 1.91 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
65
66
67
68
69
70
71
72
73
74
75
# This version must match the MAKE_DC_VERSION value below
version: "3"
volumes:
pgdata:
networks:
postgres:
driver: bridge
web:
driver: bridge
services:
postgres:
image: "ghcr.io/indoorequal/postgis:${TOOLS_VERSION}"
command: postgres -c jit=off
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- postgres
ports:
- "5432"
env_file: .env-postgres
openmaptiles-tools:
image: "ghcr.io/indoorequal/openmaptiles-tools:${TOOLS_VERSION}"
env_file: .env
environment:
# Must match the version of this file (first line)
# download-osm will use it when generating a composer file
MAKE_DC_VERSION: "3"
# Allow DIFF_MODE, MIN_ZOOM, and MAX_ZOOM to be overwritten from shell
DIFF_MODE: ${DIFF_MODE}
MIN_ZOOM: ${MIN_ZOOM}
MAX_ZOOM: ${MAX_ZOOM}
#Provide BBOX from *.bbox file if exists, else from .env
BBOX: ${BBOX}
# Imposm configuration file describes how to load updates when enabled
IMPOSM_CONFIG_FILE: ${IMPOSM_CONFIG_FILE}
# Control import-sql processes
MAX_PARALLEL_PSQL: ${MAX_PARALLEL_PSQL}
networks:
- postgres
volumes:
- .:/tileset
- ./data:/import
- ./data:/export
- ./build/sql:/sql
- ./build:/mapping
- ./cache:/cache
postserve:
image: "ghcr.io/indoorequal/openmaptiles-tools:${TOOLS_VERSION}"
command: "postserve ${TILESET_FILE} --verbose --serve=${OMT_HOST:-http://localhost}:${PPORT:-8090}"
env_file: .env
environment:
TILESET_FILE: ${TILESET_FILE}
STATE_FILE: /tileset/data/last.state.txt
depends_on:
- postgres
networks:
- postgres
- web
volumes:
- .:/tileset
postserve-cache:
image: "ghcr.io/indoorequal/nginx-cache-purge:latest"
volumes:
- ./postserve-cache.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- web
depends_on:
- postserve