Skip to content

Instantly share code, notes, and snippets.

View seahyc's full-sized avatar
🎯
Focusing

Seah Ying Cong seahyc

🎯
Focusing
View GitHub Profile
@seahyc
seahyc / docker-compose.yml
Created February 15, 2017 07:31
docker-compose.yml for rancher-server and rancher-nginx
version: '3'
services:
rancher-server:
image: rancher/server
container_name: rancher-server
ports:
- "8080:8080"
volumes:
- /root/mysql:/var/lib/mysql
- /root/mysql-log:/var/log/mysql
@seahyc
seahyc / rancher-slack.js
Last active May 17, 2019 20:40
Listens to Rancher websocket events, and notify through slack webhook when application is upgraded
/*
Setup:
npm install ws
Usage:
Create an API key in Rancher and start up with:
node socket.js address.of.rancher:8080 access_key secret_key project_id
*/
var WebSocket = require('ws');