Last active
August 13, 2019 15:48
-
-
Save onimsha/4f58c6823d2acc857397f74d715d0b28 to your computer and use it in GitHub Desktop.
Revisions
-
Alex Co revised this gist
Aug 13, 2019 . 1 changed file with 17 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -39,18 +39,33 @@ services: networks: - consul-demo image: consul:latest ports: - "8404:8400" - "8504:8500" - "8604:8600" - "8604:8600/udp" command: "agent -server -retry-join consul-server-bootstrap -ui -client 0.0.0.0" consul-server-2: networks: - consul-demo image: consul:latest ports: - "8405:8400" - "8505:8500" - "8605:8600" - "8605:8600/udp" command: "agent -server -retry-join consul-server-bootstrap -ui -client 0.0.0.0" consul-server-bootstrap: networks: - consul-demo image: consul:latest ports: - "8406:8400" - "8506:8500" - "8606:8600" - "8606:8600/udp" command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0" networks: -
Alex Co created this gist
Aug 13, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ version: '3' services: consul-agent-1: &consul-agent image: consul:latest networks: - consul-demo command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0" ports: - "8401:8400" - "8501:8500" - "8601:8600" - "8601:8600/udp" consul-agent-2: networks: - consul-demo image: consul:latest command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0" ports: - "8402:8400" - "8502:8500" - "8602:8600" - "8602:8600/udp" consul-agent-3: networks: - consul-demo image: consul:latest command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0" ports: - "8403:8400" - "8503:8500" - "8603:8600" - "8603:8600/udp" consul-server-1: &consul-server networks: - consul-demo image: consul:latest command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0" consul-server-2: networks: - consul-demo image: consul:latest command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0" consul-server-bootstrap: networks: - consul-demo image: consul:latest command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0" networks: consul-demo: