Skip to content

Instantly share code, notes, and snippets.

@paraita
Created September 4, 2020 18:33
Show Gist options
  • Save paraita/33228b55501e924c1183bf0818862d51 to your computer and use it in GitHub Desktop.
Save paraita/33228b55501e924c1183bf0818862d51 to your computer and use it in GitHub Desktop.
Kuzzle docker-compose with dashboard (you need to compile it and put it in the data folder so nginx can serve it)
version: '3'
services:
kuzzle:
image: kuzzleio/kuzzle:2
ports:
- "7512:7512"
- "1883:1883"
cap_add:
- SYS_PTRACE
depends_on:
- redis
- elasticsearch
environment:
- kuzzle_services__storageEngine__client__node=http://elasticsearch:9200
- kuzzle_services__internalCache__node__host=redis
- kuzzle_services__memoryStorage__node__host=redis
- kuzzle_server__protocols__mqtt__enabled=true
- NODE_ENV=production
redis:
image: redis:5
elasticsearch:
image: kuzzleio/elasticsearch:7.4.0
ulimits:
nofile: 65536
dashboard:
image: nginx:alpine
ports:
- "8088:80"
volumes:
- ./data:/srv
- ./nginx.conf:/etc/nginx/conf.d/default.conf
@paraita
Copy link
Author

paraita commented Sep 4, 2020

nginx.conf:

server{
	listen 80;
	server_name _;

	location / {	
		root /srv;
		# Activate the next line if you want to list files
		# autoindex on;
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment