2024-02-20 14:42:30 +00:00
|
|
|
# documentation: https://kuzzle.io
|
2023-10-26 21:29:59 +00:00
|
|
|
# slogan: Kuzzle is a generic backend offering the basic building blocks common to every application.
|
|
|
|
# tags: backend, api, realtime, websocket, mqtt, rest, sdk, iot, geofencing, low-code
|
2024-02-21 13:30:32 +00:00
|
|
|
|
2023-10-26 21:29:59 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
redis:
|
2023-11-13 14:19:49 +00:00
|
|
|
image: redis:7-alpine
|
2023-10-26 21:29:59 +00:00
|
|
|
command: redis-server --appendonly yes
|
2023-11-13 14:19:49 +00:00
|
|
|
volumes:
|
|
|
|
- elastic-redis-data:/data
|
2023-10-26 21:29:59 +00:00
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "redis-cli", "ping" ]
|
2023-11-13 14:19:49 +00:00
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
2023-10-26 21:29:59 +00:00
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
image: kuzzleio/elasticsearch:7
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "curl", "-f", "http://localhost:9200" ]
|
|
|
|
interval: 2s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 10
|
|
|
|
ulimits:
|
|
|
|
nofile: 65536
|
|
|
|
|
|
|
|
kuzzle:
|
|
|
|
image: kuzzleio/kuzzle:latest
|
|
|
|
environment:
|
|
|
|
- SERVICE_FQDN_KUZZLE_7512
|
|
|
|
- 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=production
|
|
|
|
# - DEBUG=${DEBUG:-kuzzle:*,-kuzzle:network:protocols:websocket,-kuzzle:events}
|
|
|
|
- DEBUG=${DEBUG:-kuzzle:cluster:sync}
|
|
|
|
- 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}
|
|
|
|
cap_add:
|
|
|
|
- SYS_PTRACE
|
|
|
|
ulimits:
|
|
|
|
nofile: 65536
|
|
|
|
sysctls:
|
|
|
|
- net.core.somaxconn=8192
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "curl", "-f", "http://localhost:7512/_healthcheck" ]
|
|
|
|
timeout: 1s
|
|
|
|
interval: 2s
|
|
|
|
retries: 30
|
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
elasticsearch:
|
|
|
|
condition: service_healthy
|