Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Latest commit

 

History

History
43 lines (31 loc) · 1.1 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.1 KB

Docker Service Frontail

Build Status

Feed frontail with your Docker Swarm logs and post-process with Bunyan

Getting Started

  1. docker run -it -v /var/run/docker.sock:/var/run/docker.sock -p 127.0.0.1:9001:9001 feramhq/docker-service-frontail
  2. Open http://127.0.0.1:9001

Creating a Docker Service

Create the following docker-compose.yaml file.

version: '3.2'
services:
  frontail:
    image: feramhq/docker-service-frontail
    ports:
      - 9001:9001
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    deploy:
      placement:
        constraints:
          - node.role == manager
      resources:
        limits:
          memory: 200M
        reservations:
          memory: 80M

Deploy the above docker-compose.yaml file with:

docker stack deploy -c docker-compose.yaml devops

Note, it is not advisable to deploy this service on more than one node, because you have to take care of client stickiness on for the websocket connection.