-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (68 loc) · 1.68 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
67
68
69
70
71
72
name: "template-iot"
services:
api:
image: kuzzleio/kuzzle-runner:20
command: sh /var/app/start.sh api
volumes:
- .:/var/app
- ~/.npmrc:/root/.npmrc
depends_on:
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
ports:
- "7512:7512"
- "7511:7511"
- "7510:7510"
- "9229:9229"
- "1883:1883"
environment:
- kuzzle_services__storageEngine__client__node=http://elasticsearch:9200
- kuzzle_services__storageEngine__commonMapping__dynamic=true
- kuzzle_services__internalCache__node__host=redis
- kuzzle_services__memoryStorage__node__host=redis
- NODE_ENV=${NODE_ENV:-development}
- DEBUG=${DEBUG:-none}
healthcheck:
test: ["CMD", "curl", "-f", "http://api:7512/_healthcheck"]
timeout: 10s
interval: 10s
retries: 30
start_period: 1m
web:
image: kuzzleio/kuzzle-runner:20
command: sh /var/app/start.sh web
volumes:
- .:/var/app
depends_on:
api:
condition: service_healthy
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://web:8080"]
interval: 5s
timeout: 5s
retries: 30
redis:
image: redis:5
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 30
elasticsearch:
image: kuzzleio/elasticsearch:7
volumes:
- "/tmp/snapshots:/tmp/snapshots"
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD", "curl", "-f", "http://elasticsearch:9200"]
interval: 5s
timeout: 5s
retries: 30