Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hiep Nguyen
docker-elk
Commits
7fc51797
Commit
7fc51797
authored
Oct 28, 2016
by
Anthony Lapenna
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vagrant' into 5-vagrant
parents
6bb0b536
808f8d0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
.gitignore
.gitignore
+2
-0
README.md
README.md
+12
-0
Vagrantfile
Vagrantfile
+47
-0
No files found.
.gitignore
0 → 100644
View file @
7fc51797
.vagrant/
.idea/
README.md
View file @
7fc51797
...
...
@@ -97,6 +97,18 @@ By default, the stack exposes the following ports:
*WARNING*
: If you're using
*Docker Toolbox*
, you must access it via the
*docker-machine*
IP address instead of
*localhost*
.
## Running the ELK stack in a Vagrant VM
If you want to learn or try the ELK stack in Windows, OSX or other OS. You can run the stack in a vagrant VM.
Prerequisite:
[
Vagrant
](
https://www.vagrantup.com/downloads.html
)
and
[
VirtualBox
](
https://www.virtualbox.org/wiki/Downloads
)
.
```
SHELL
git clone https://github.com/deviantony/docker-elk.git
cd docker-elk
vagrant up
```
# Configuration
*NOTE*: Configuration is not dynamically reloaded, you will need to restart the stack after any change in the configuration of a component.
...
...
Vagrantfile
0 → 100644
View file @
7fc51797
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION
=
"2"
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
config
.
vm
.
box
=
"ubuntu/trusty64"
config
.
vm
.
provider
"virtualbox"
do
|
v
|
v
.
name
=
"ELK_vagrant"
v
.
memory
=
4096
v
.
cpus
=
2
end
config
.
vm
.
box_check_update
=
true
config
.
vm
.
network
"forwarded_port"
,
guest:
5000
,
host:
5000
config
.
vm
.
network
"forwarded_port"
,
guest:
5601
,
host:
5601
config
.
vm
.
network
"forwarded_port"
,
guest:
9200
,
host:
9200
config
.
vm
.
network
"forwarded_port"
,
guest:
9300
,
host:
9300
#SSH
config
.
ssh
.
forward_agent
=
true
config
.
ssh
.
shell
=
"bash -c 'BASH_ENV=/etc/profile exec bash'"
#Provision
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
sudo touch /var/lib/cloud/instance/locale-check.skip
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
sudo apt-cache policy docker-engine
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y docker-engine python-pip
sudo pip install docker-compose
sudo usermod -aG docker vagrant
sudo -u vagrant pip install docker-compose
sudo docker-compose -f /vagrant/docker-compose.yml up -d
SHELL
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment