Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker image for git2consul
Full Description


Docker image for git2consul

Up and running

$ mkdir -p /tmp/git2consul.d
$ cat <<EOF > /tmp/git2consul.d/config.json
  "version": "1.0",
  "repos" : [{
    "name" : "sample_configuration",
    "url" : "",
    "branches" : ["dev"],
    "hooks": [{
      "type" : "polling",
      "interval" : "1"

$ docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp -h node1 --name consul progrium/consul -server -bootstrap
$ CONSUL_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' consul)
$ docker run -d --name git2consul -v /tmp/git2consul.d:/etc/git2consul.d cimpress/git2consul --endpoint $CONSUL_IP --port 8500 --config-file /etc/git2consul.d/config.json

Note: If using docker-machine, you will need to place config.json in the host VM.

Additional information

If using webhooks, you will have to expose the ports that are going to be used.

Docker Pull Command
Source Repository