-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.03 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
version: "3"
services:
database:
image: postgis/postgis:13-3.1
container_name: database
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d points"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: points
volumes:
- ./bin:/data
ports:
- 5433:5432
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
tegola:
image: iwpnd/tegolassl:edge
container_name: tegola
depends_on:
database:
condition: service_healthy
restart: "unless-stopped"
ports:
- 8080:8080
volumes:
- ./config:/data
command: >
serve --config /data/config.toml
environment:
DB_HOST: database
DB_PORT: 5432
DB_NAME: points
DB_USER: user
DB_PASSWORD: password
TEGOLA_POSTGIS_SSL: disable
TEGOLA_REDIS_SSL: false
REDIS_HOST: redis:6379
REDIS_PASSWORD: ""
TEGOLA_SQL_DEBUG: LAYER_SQL