Skip to content

Consul image with custom user settings and basic monitoring tools built in

License

Notifications You must be signed in to change notification settings

ValFadeev/consul-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul

Docker Stars Docker Pulls

Contents

  • runs Consul process under dumb-init as a non-root user with the possibity of mapping to an existing user id on host via CONSUL_UID environment variable (inspired by this article);
  • ships with curl and monitoring-plugins to use in health checks, as well as jq and consul-cli to use in handlers;

Usage

Development

docker run -it --rm \
           --name consul \
           -p 8500:8500 \
           beyondrepair/consul-container

Custom configuration

docker run -it --rm \
           --name consul \
           -v /path/to/config/:/config \
           -p 8500:8500 \
           beyondrepair/consul

Custom user

Assuming /path/to/config is readable by host user with id 9001

docker run -it --rm \
           --name consul \
           -v /path/to/config/:/config \
           -e CONSUL_UID=9001 \
           -p 8500:8500 \
           beyondrepair/consul

About

Consul image with custom user settings and basic monitoring tools built in

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published