Node including ponte,mongodb,mysql,redis,async+Python with paho-mqtt,mysql-python,pymongo,redis.
484
docker run -d -p 3000:3000 -p 1883:1883 -p 5683:5683 -v /root:/root -e MYSQL_HOST=$mysql_host -e MYSQL_HOST_PORT=$mysql_port -e MYSQL_INSTANCE_NAME=$database_name -e MYSQL_USERNAME=$username -e MYSQL_PASSWORD=$password -e MONGODB_HOST=$mongodb_host (opt.: username:password@host_url) -e MONGODB_HOST_PORT=$mongodb_port -e RABBITMQ_HOST=$rabbitmq_host -e RABBITMQ_HOST_PORT=$rabbitmq_port -e BROKER_HOST=$broker_host -e BROKER_HOST_PORT=$broker_port physicso/ponte:1.0 run.sh
Your need to put the config file in host:/root as ponte.js.
ponte = require("/usr/local/lib/node_modules/ponte"); var opts = { logger: { level: 40 }, http: { port: 3000 // tcp }, mqtt: { port: 1883 // tcp }, coap: { port: 5683 // udp }, persistence: { type: 'level', path: './db' } }; var server = ponte(opts);
Content type
Image
Digest
Size
193.3 MB
Last updated
over 10 years ago
docker pull physicso/ponte:1.1