This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
397 additions
and
139 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
version: '3' | ||
services: | ||
etcd: | ||
image: quay.io/coreos/etcd:v3.3.10 | ||
command: > | ||
/usr/local/bin/etcd | ||
-name etcd0 | ||
-advertise-client-urls http://localhost:2379 | ||
-listen-client-urls http://0.0.0.0:2379 | ||
-initial-advertise-peer-urls http://0.0.0.0:2380 | ||
-listen-peer-urls http://0.0.0.0:2380 | ||
-initial-cluster-token etcd-cluster-1 | ||
-initial-cluster etcd0=http://0.0.0.0:2380 | ||
-initial-cluster-state new | ||
ports: | ||
- "2379:2379" | ||
|
||
gubernator-1: | ||
image: thrawn01/gubernator:latest | ||
command: "/gubernator" | ||
environment: | ||
# The address GRPC requests will listen on | ||
- GUBER_GRPC_ADDRESS=0.0.0.0:81 | ||
# The address HTTP requests will listen on | ||
- GUBER_HTTP_ADDRESS=0.0.0.0:80 | ||
# Choose the etcd peer discovery type | ||
- GUBER_PEER_DISCOVERY_TYPE=etcd | ||
# A comma separated list of etcd nodes | ||
- GUBER_ETCD_ENDPOINTS=etcd:2379 | ||
# The key prefix used in the etcd store | ||
- GUBER_ETCD_KEY_PREFIX=/gubernator-docker | ||
# The address that is advertised to other peers | ||
- GUBER_ETCD_ADVERTISE_ADDRESS=gubernator-1:81 | ||
#- GUBER_DATA_CENTER=us-east-1 | ||
ports: | ||
- "9081:81" | ||
- "9080:80" | ||
|
||
gubernator-2: | ||
image: thrawn01/gubernator:latest | ||
command: "/gubernator" | ||
environment: | ||
# The address GRPC requests will listen on | ||
- GUBER_GRPC_ADDRESS=0.0.0.0:81 | ||
# The address HTTP requests will listen on | ||
- GUBER_HTTP_ADDRESS=0.0.0.0:80 | ||
# Choose the etcd peer discovery type | ||
- GUBER_PEER_DISCOVERY_TYPE=etcd | ||
# A comma separated list of etcd nodes | ||
- GUBER_ETCD_ENDPOINTS=etcd:2379 | ||
# The key prefix used in the etcd store | ||
- GUBER_ETCD_KEY_PREFIX=/gubernator-docker | ||
# The address that is advertised to other peers | ||
- GUBER_ETCD_ADVERTISE_ADDRESS=gubernator-2:81 | ||
#- GUBER_DATA_CENTER=us-east-1 | ||
ports: | ||
- "9181:81" | ||
- "9180:80" | ||
|
||
gubernator-3: | ||
image: thrawn01/gubernator:latest | ||
command: "/gubernator" | ||
environment: | ||
# The address GRPC requests will listen on | ||
- GUBER_GRPC_ADDRESS=0.0.0.0:81 | ||
# The address HTTP requests will listen on | ||
- GUBER_HTTP_ADDRESS=0.0.0.0:80 | ||
# Choose the etcd peer discovery type | ||
- GUBER_PEER_DISCOVERY_TYPE=etcd | ||
# A comma separated list of etcd nodes | ||
- GUBER_ETCD_ENDPOINTS=etcd:2379 | ||
# The key prefix used in the etcd store | ||
- GUBER_ETCD_KEY_PREFIX=/gubernator-docker | ||
# The address that is advertised to other peers | ||
- GUBER_ETCD_ADVERTISE_ADDRESS=gubernator-3:81 | ||
#- GUBER_DATA_CENTER=us-west-2 | ||
ports: | ||
- "9281:81" | ||
- "9280:80" | ||
|
||
gubernator-4: | ||
image: thrawn01/gubernator:latest | ||
command: "/gubernator" | ||
environment: | ||
- GUBER_DEBUG=true | ||
# The address GRPC requests will listen on | ||
- GUBER_GRPC_ADDRESS=0.0.0.0:81 | ||
# The address HTTP requests will listen on | ||
- GUBER_HTTP_ADDRESS=0.0.0.0:80 | ||
# Choose the etcd peer discovery type | ||
- GUBER_PEER_DISCOVERY_TYPE=etcd | ||
# A comma separated list of etcd nodes | ||
- GUBER_ETCD_ENDPOINTS=etcd:2379 | ||
# The key prefix used in the etcd store | ||
- GUBER_ETCD_KEY_PREFIX=/gubernator-docker | ||
# The address that is advertised to other peers | ||
- GUBER_ADVERTISE_ADDRESS=gubernator-4:81 | ||
#- GUBER_DATA_CENTER=us-west-2 | ||
ports: | ||
- "9381:81" | ||
- "9380:80" |
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
Oops, something went wrong.