forked from devteds/swarm-portworx-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsul.yml
32 lines (27 loc) · 746 Bytes
/
consul.yml
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
version: '3.2'
services:
client:
image: consul:1.0.6
command: "agent -retry-join server-bootstrap -client 0.0.0.0 -bind '{{ GetInterfaceIP \"eth0\" }}'"
depends_on:
- server-bootstrap
deploy:
replicas: 2
server:
image: consul:1.0.6
depends_on:
- server-bootstrap
command: "agent -server -retry-join server-bootstrap -client 0.0.0.0 -bind '{{ GetInterfaceIP \"eth0\" }}'"
deploy:
replicas: 2
server-bootstrap:
image: consul:1.0.6
ports:
- "8500:8500"
# - "8400:8400"
# - "8600:8600"
command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0 -bind '{{ GetInterfaceIP \"eth0\" }}'"
networks:
default:
external:
name: core-infra