Docker container runner with centralised logging and automated nginx proxy.
This is collection of docker containers and configuration files to simplify running single host multidomain webserver.
This package gives you:
- fabric-script handling installation of Harbour to new machine.
- nginx-proxy with docker-gen that will detect your containers and their domains.
- Centralized logging with fluentd
- Elasticsearch backend for storing logs
- Kibana 4 for searching and visualisation
- Logrotate for rotating Docker logs
Installation
-
User with sudo rights and server hostname/ip
-
fab create_new_harbour:@
-
harbour installs Docker and other dependencies
-
test new Harbour http://
-
make fake domain in your local machine
echo '<host_ip> example.com' >> /etc/hosts
-
run container with domain associated to it:
sudo docker run -e VIRTUAL_HOST=example.com -e LOG=true tutum/hello-world
Setting up ES tempaltes adn kibana Dashboard
This is bit tricky, but here is the procedure.