Skip to content

Instantly share code, notes, and snippets.

@dmarov
Created January 26, 2019 12:54
Show Gist options
  • Save dmarov/7e0e30ccdbca5d62b03858c0a56dfc88 to your computer and use it in GitHub Desktop.
Save dmarov/7e0e30ccdbca5d62b03858c0a56dfc88 to your computer and use it in GitHub Desktop.
{
"bootstrap": true,
"bootstrap_expect": 1,
"data_dir": "/var/db/consul",
"node_name": "main-node",
"server": true,
"ui": true,
"bind_addr": "192.168.0.10"
}
{
"service": {
"name": "service_1",
"port": 30000,
"tags": [
"traefik.enable=true",
"traefik.frontend.entryPoints=http",
"traefik.frontend.rule=Host:service-1",
"traefik.frontend.priority=1000"
]
}
}
{
"service": {
"name": "service_2",
"port": 30001,
"tags": [
"traefik.enable=true",
"traefik.frontend.entryPoints=http",
"traefik.frontend.rule=HostRegexp:{.*}",
"traefik.frontend.priority=100"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment