-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.in
65 lines (63 loc) · 1.58 KB
/
docker-compose.yml.in
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
# -*- mode: docker-compose; -*- vim: set ft=yaml:
services:
web:
build: .
depends_on:
postgis:
condition: service_healthy
image: fdean/trip-server-2:latest
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
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: 'no'
postgis:
build:
context: .
dockerfile: Dockerfile-postgis
shm_size: 256m
image: fdean/trip-database:latest
shm_size: 512m
# https://docs.docker.com/compose/compose-file/05-services/#healthcheck
# https://docs.docker.com/engine/reference/builder/#healthcheck
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -h postgis -U trip -d trip'"]
timeout: 5s
# Initial test failures ignored for length of start_period after startup
start_period: 60s
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
volumes:
trip-db-data: