-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (57 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
57 lines (57 loc) · 1.34 KB
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
services:
reitti:
image: dedicatedcode/reitti:latest
ports:
- 8080:8080
depends_on:
postgis:
condition: service_healthy
restart: true
redis:
condition: service_healthy
tile-cache:
condition: service_healthy
volumes:
- reitti-data:/data/
environment:
POSTGIS_USER: reitti
POSTGIS_PASSWORD: reitti
POSTGIS_DB: reittidb
POSTGIS_HOST: postgis
postgis:
image: postgis/postgis:17-3.5-alpine
environment:
POSTGRES_USER: reitti
POSTGRES_PASSWORD: reitti
POSTGRES_DB: reittidb
volumes:
- postgis-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U reitti -d reittidb"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
tile-cache:
image: dedicatedcode/reitti-tile-cache:latest
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1/osm/0/0/0.png"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- tile-cache-data:/var/cache/nginx
volumes:
postgis-data:
redis-data:
reitti-data:
tile-cache-data: