Public | Automated Build

Last pushed: 2 months ago
Short Description
Docker service observer image for https://github.com/geniusrabbit/registry
Full Description

Docker service observer

Docker service observer image for https://github.com/geniusrabbit/registry

@license Apache-2.0

Environment

REGISTRY_DNS=http://consul:8500/dc1?refresh_interval=5

Example of your service Dockerfile

FROM ubuntu:trusty

ENV SERVICE_NAME=archivarius
ENV SERVICE_WEIGHT=1                                          # Importance of the service in the group of same services
ENV REGISTRY_DNS=http://consul:8500/dev?refresh_interval=5    # If you use discover service of registry
ENV CHECK_HTTP=http://{{address}}/v1/check                    # {{address}} automaticaly replaced to real address of service
ENV CHECK_INTERVAL=5s
ENV CHECK_TIMEOUT=2s

EXPOSE {port}, ...

Run registry

Have to run on each server with your docker services.

docker run -d \
    -e 'REGISTRY_DNS=http://consul:8500/dev?refresh_interval=5' \
    -v /var/run/docker.sock:/var/run/docker.sock \
    geniusrabbit/service-observer
Docker Pull Command
Owner
geniusrabbit