Created
January 26, 2019 12:54
-
-
Save dmarov/7e0e30ccdbca5d62b03858c0a56dfc88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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