-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (64 loc) · 1.57 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
version: "3.9"
x-kuzzle-node: &kuzzle-node
image: kuzzleio/kuzzle-runner:18
command: ${DOCKER_COMMAND:-npm run dev}
cap_add:
- SYS_PTRACE
ulimits:
nofile: 65536
sysctls:
- net.core.somaxconn=8192
volumes:
- .:/var/app
ports:
- "7512:7512"
- "9229:9229"
- "1883:1883"
depends_on:
- redis
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}
# - DEBUG=${DEBUG:-kuzzle:*,-kuzzle:entry-point:protocols:websocket,-kuzzle:cluster:heartbeat}
- kuzzle_cluster__minimumNodes=3
services:
nginx:
image: nginx:1.19-alpine
container_name: kuzzle_nginx
logging:
driver: none
depends_on:
- kuzzle_node_1
- kuzzle_node_2
- kuzzle_node_3
ports:
- "7512:7512"
volumes:
- ./docker/nginx-dev:/etc/nginx/conf.d
kuzzle_node_1:
<<: *kuzzle-node
container_name: kuzzle_node_1
ports:
- "17510:7512"
kuzzle_node_2:
<<: *kuzzle-node
container_name: kuzzle_node_2
ports:
- "17511:7512"
kuzzle_node_3:
<<: *kuzzle-node
container_name: kuzzle_node_3
ports:
- "17512:7512"
redis:
image: redis:6
elasticsearch:
image: kuzzleio/elasticsearch:7
logging:
driver: none
ulimits:
nofile: 65536