forked from mailgun/gubernator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-etcd.yaml
101 lines (97 loc) · 3.33 KB
/
docker-compose-etcd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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"