-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·66 lines (62 loc) · 1.45 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
version: "3"
services:
redis:
image: redis:latest
container_name: tegola-redis
ports:
- 6379:6379
database:
image: postgis/postgis:13-3.1-alpine
container_name: postgis
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d bonn"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: bonn
ports:
- 5432:5432
migration:
image: postgis/postgis:13-3.1-alpine
container_name: migration
depends_on:
database:
condition: service_healthy
volumes:
- ./data:/data
environment:
PGUSER: postgres
PGPASSWORD: postgres
command:
- /bin/bash
- -c
- |
tar -xzf /data/bonn_example.tar.gz -C /data
bash /data/init.sh
tegola-mvt-postgis-provider:
image: gospatial/tegola:v0.20.0
container_name: tegola-mvt-postgis-provider
depends_on:
database:
condition: service_healthy
restart: "unless-stopped"
ports:
- 8081:8081
volumes:
- ./config:/data
command: >
serve --config /data/config-mvt-postgis.toml
environment:
DB_HOST: database
DB_PORT: 5432
DB_NAME: bonn
DB_USER: postgres
DB_PASSWORD: postgres
TEGOLA_POSTGIS_SSL: disable
TEGOLA_REDIS_SSL: false
REDIS_HOST: redis:6379
REDIS_PASSWORD: ""
TEGOLA_SQL_DEBUG: LAYER_SQL