#Ubuntu Setup
curl -sSL https://gist.githubusercontent.com/vjm/150f4ac913195b8ca44a/raw/install.sh | sudo sh
| description "ELK stack container" | |
| author "Vince Montalbano" | |
| start on filesystem and started docker | |
| stop on runlevel [!2345] | |
| respawn | |
| script | |
| /usr/bin/docker start -a elk_stack | |
| end script |
| docker create -v /media/data1:/data1 -p 5601:5601 -p 9200:9200 -p 9998:9998 --name elk_stack vjm03/elk | |
| start elk_stack |