-
Notifications
You must be signed in to change notification settings - Fork 128
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 2.27 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
x-kuzzle-config: &kuzzle-config
image: kuzzleio/core-dev:2
command: sh -c 'chmod 755 /run-dev.sh && /run-dev.sh'
volumes:
- '.:/var/app'
- './docker/scripts/run-dev.sh:/run-dev.sh'
cap_add:
- SYS_PTRACE
ulimits:
nofile: 65536
sysctls:
- net.core.somaxconn=8192
depends_on:
redis:
condition: service_healthy
elasticsearch:
condition: service_healthy
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
- kuzzle_server__protocols__mqtt__enabled=true
- kuzzle_server__protocols__mqtt__developmentMode=false
- kuzzle_limits__loginsPerSecond=50
- NODE_ENV=${NODE_ENV:-development}
# - DEBUG=${DEBUG:-kuzzle:*,-kuzzle:network:protocols:websocket,-kuzzle:events}
- DEBUG_DEPTH=${DEBUG_DEPTH:-0}
- DEBUG_MAX_ARRAY_LENGTH=${DEBUG_MAX_ARRAY:-100}
- DEBUG_EXPAND=${DEBUG_EXPAND:-off}
- DEBUG_SHOW_HIDDEN={$DEBUG_SHOW_HIDDEN:-on}
- DEBUG_COLORS=${DEBUG_COLORS:-on}
- KUZZLE_VAULT_KEY=${KUZZLE_VAULT_KEY:-secret-password}
- KUZZLE_SECRETS_FILE=${KUZZLE_SECRETS_FILE:-/var/app/features/fixtures/secrets.enc.json}
# Variables used by the development scripts
- NODE_16_VERSION=16.19.1
- NODE_18_VERSION=18.17.0
- NODE_20_VERSION=20.10.0
- WITHOUT_KUZZLE # Run only Elasticsearch and Redis
- REBUILD # Force a rebuild of npm modules
services:
node:
<<: *kuzzle-config
ports:
- '7512-7599:7512' # Kuzzle API port
- '1883-1899:1883' # Kuzzle MQTT port
- '9229-9299:9229' # Debug port
healthcheck:
test: ['CMD', 'curl', '-f', 'http://node:7512/_healthcheck']
timeout: 1s
interval: 2s
retries: 10
start_period: 1m
redis:
image: redis:6
ports:
- '6379:6379'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 1s
timeout: 3s
retries: 30
elasticsearch:
image: kuzzleio/elasticsearch:7
ports:
- '9200:9200'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9200']
interval: 2s
timeout: 2s
retries: 10
ulimits:
nofile: 65536