/harbour

Docker container runner with logging and automated nginx proxy

Primary LanguageShellGNU General Public License v2.0GPL-2.0

nginx 1.7.8 Kibana Dashboard 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

  1. User with sudo rights and server hostname/ip

  2. fab create_new_harbour:@

  3. harbour installs Docker and other dependencies

  4. test new Harbour http://

  5. make fake domain in your local machine

    echo '<host_ip> example.com' >> /etc/hosts

  6. 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.