-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
24 lines (20 loc) · 812 Bytes
/
docker-compose.yaml
File metadata and controls
24 lines (20 loc) · 812 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
version: '3'
services:
consul_node1:
build:
context: ./images/
dockerfile: Dockerfile-consul-0.7.2
ports:
- "8600:8600"
- "8500:8500"
command: sh -c '/app/consul-0.7.2/consul agent -datacenter=docker_dc -bootstrap -server -data-dir=/tmp/consul -client=0.0.0.0 -ui ; tail -f /dev/null'
consul_node2:
build:
context: ./images/
dockerfile: Dockerfile-consul-0.7.2
command: sh -c '/app/consul-0.7.2/consul agent -datacenter=docker_dc -server -data-dir=/tmp/consul -retry-join=consul_node1 ; tail -f /dev/null'
consul_node3:
build:
context: ./images/
dockerfile: Dockerfile-consul-0.7.2
command: sh -c '/app/consul-0.7.2/consul agent -datacenter=docker_dc -server -data-dir=/tmp/consul -retry-join=consul_node1 ; tail -f /dev/null'