Code to build a lab environment running the Elastic stack (Elasticsearch, Kibana, Fleet, Agent and Portainer) using only Docker-compose and Bash.
Because installing all the Elastic components in a self-hosted/self-managed environment is still not very straightforward.
- Windows Agent deployment script - PowerShell
- HAProxy with TLS termination for ES and Fleet
- Logstash (looks like this one is getting phased out gradually)
- Generated object encryption key for Kibana
- Secure Fleet server communication with agents (it's HTTP at the moment)
- Version 8 compatibility checks
-
Prerequisites
- Freshly installed Ubuntu 20.04 LTS
- Internet access
-
Clone this repo
-
sudo ./setup.sh
-
If you need to nuke everything and start fresh:
sudo ./setup.sh reset