-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlocal-compose.yml
More file actions
36 lines (34 loc) · 878 Bytes
/
local-compose.yml
File metadata and controls
36 lines (34 loc) · 878 Bytes
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
version: '2.1'
services:
etcd:
image: autopilotpattern/etcd
mem_limit: 128m
ports:
- 4001
- 2379
- 2380
links:
- bootstrap:bootstrap
restart: always
environment:
- DISCOVERY
command: >-
/usr/local/bin/etcd-manage start
bootstrap:
image: autopilotpattern/etcd
mem_limit: 128m
ports:
- 4001:4001
- 2379:2379
- 2380:2380
hostname: bootstrap
command: >-
/usr/local/bin/etcd
-name bootstrap
-advertise-client-urls http://bootstrap:2379,http://bootstrap:4001
-listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001
-initial-advertise-peer-urls http://bootstrap:2380
-listen-peer-urls http://0.0.0.0:2380
-initial-cluster-token etcd-cluster-1
-initial-cluster bootstrap=http://bootstrap:2380
-initial-cluster-state new