-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
81 lines (77 loc) · 2.18 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
73
74
75
76
77
78
79
80
81
version: "3"
services:
redis:
image: redis:5
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 1s
timeout: 3s
retries: 30
elasticsearch:
image: kuzzleio/elasticsearch:7
restart: unless-stopped
ports:
- "9200:9200"
environment:
- ingest.geoip.downloader.enabled=false
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9200']
interval: 2s
timeout: 2s
retries: 10
ulimits:
nofile: 65536
volumes:
- esdata01:/usr/share/elasticsearch/data
kuzzle:
image: kuzzleio/kuzzle-runner:20
restart: unless-stopped
command: "bash /docker/start-backend.sh"
profiles: ["backend"]
depends_on:
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
cap_add:
- SYS_PTRACE
ulimits:
nofile: 65536
sysctls:
- net.core.somaxconn=8192
ports:
- "7512:7512"
- "9229:9229"
- "1883:1883"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://kuzzle:7512/_healthcheck']
timeout: 1s
interval: 2s
retries: 10
start_period: 30s
volumes:
- ./docker:/docker:cached
- ./index.ts:/var/app/index.ts:cached
- ./package.json:/var/app/package.json:cached
- ./package-lock.json:/var/app/package-lock.json:cached
- ./ergol.config.json:/var/app/ergol.config.json:cached
- ./tsconfig.json:/var/app/tsconfig.json:cached
- ./lib:/var/app/lib:cached
- ./tests:/var/app/tests:cached
- ~/.npmrc:/root/.npmrc:cached
# Use persistent volume to persist packages install
- backendModules:/var/app/node_modules/
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}
- BACKEND_COMMAND=${BACKEND_COMMAND:-npm run dev}
volumes:
esdata01:
backendModules: