for detailed information visit Deepstream's Website and Deepstream's Github Repo
CentOS v7
Deepstream v2.1.3-1
- Redis for Message
- Redis for Cache
- MongoDB for Storage
minimum configuration
{
"volumes": null,
"id": "/deepstream-io",
"cmd": null,
"args": null,
"user": null,
"env": {
"DEEPSTREAM_PORT": "6025",
"MONGODB_CONNECTION_STRING": "mongodb://user:[email protected]:27017",
"DEEPSTREAM_PASSWORD": "RGZG5Sz1Vs++MsNfGaWULaPboKTvTNdqxKFPlAnoSOQ=2dj6ms28tuAzVTbUaFhsNg==",
"REDIS_CACHE_HOST": "redis1.mydomain.com",
"REDIS_MSG_HOST": "redis2.mydomain.com"
},
"instances": 1,
"cpus": 0.2,
"mem": 256,
"disk": 0,
"gpus": 0,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"docker": {
"image": "rohithzr/deepstream.io:v5",
"forcePullImage": true,
"privileged": false,
"portMappings": [{
"containerPort": 6025,
"protocol": "tcp"
}],
"network": "BRIDGE"
}
},
"healthChecks": [{
"protocol": "HTTP",
"path": "/health-check",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3,
"ignoreHttp1xx": false
}],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 1
},
"labels": {
"HAPROXY_GROUP": "external,internal",
"HAPROXY_0_VHOST": "deepstream.mydomain.com",
"HAPROXY_0_REDIRECT_TO_HTTPS": "true"
}
}
docker pull rohithzr/deepstream.io:v5
OR
FROM rohithzr/deepstream.io:v5
To generate the password hash you can use any deepstream installation with following config in /etc/deepstream/config.yml
auth:
type: file
options:
path: ./users.yml
hash: 'sha256'
iterations: 65536
keyLength: 32
use this command to generate the hash
deepstream hash youPlainTextPassword@123
Default password is p@123
Environment variables currently supported (self explanatory
Look at the Dockerfile for default values
DEEPSTREAM_PORT
DEEPSTREAM_HOST
REDIS_MSG_HOST
REDIS_MSG_PORT
REDIS_CACHE_HOST
REDIS_CACHE_PORT
MONGODB_CONNECTION_STRING
MONGODB_DATABASE
MONGODB_COLLECTION
MONGODB_SPLIT_CHAR
DEEPSTREAM_PASSWORD
- Dynamic Password Generation
- Script to install more plugins
- More control over plugins