This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
redis: | |
image: redis:alpine | |
container_name: redis_db | |
command: redis-server --appendonly yes | |
ports: | |
- 6379:6379 | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://cdn.peerjs.com/0.3/peer.min.js"></script> | |
<script type="text/javascript"> | |
// https://github.com/peers/peerjs | |
// go here to get your own key | |
var peerjsPeer = new Peer({key: 'xxxYOURKEYGOESHERExxxx'}); | |
peerjsPeer.on('open', function() { | |
console.log('My peerjsPeer ID is: ', peerjsPeer.id); | |
}); |