-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-map-demo.yml
87 lines (84 loc) · 1.81 KB
/
docker-compose-map-demo.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
76
77
78
79
80
81
82
83
84
85
86
87
# -*- mode: docker-compose; -*- vim: set ft=yaml:
version: '3.7'
services:
web:
build: .
depends_on:
- map
- postgis
image: fdean/trip-server-2:latest
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
#max_attempts: 3
window: 90s
resources:
limits:
cpus: '0.50'
memory: 600M
reservations:
cpus: '0.25'
memory: 40M
ports:
- 8080:8080
environment:
TRIP_SIGNING_KEY: divmyelfajsa
TRIP_RESOURCE_SIGNING_KEY: niqueSlothUg
POSTGRES_PASSWORD: EgceOvovbiag
CONFIGURE_TILE_SERVER: 'yes'
postgis:
build:
context: .
dockerfile: Dockerfile-postgis
shm_size: 256m
image: fdean/trip-database:latest
shm_size: 512m
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
#max_attempts: 3
window: 90s
resources:
limits:
cpus: '0.5'
memory: 400M
reservations:
cpus: '0.1'
memory: 20M
volumes:
- trip-db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: EgceOvovbiag
map:
image: fdean/tile-server:latest
deploy:
replicas: 1
restart_policy:
condition: none
#condition: on-failure
#delay: 5s
#max_attempts: 3
window: 90s
resources:
limits:
cpus: '1'
memory: 2048M
reservations:
cpus: '0.25'
memory: 400M
volumes:
- osm-data:/var/lib/postgresql/data
- osm-tiles:/var/cache/renderd/tiles
environment:
PGDATA: /var/lib/postgresql/data
command: "postgres"
volumes:
trip-db-data:
osm-data:
external: true
osm-tiles:
external: true