-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.1 KB
/
docker-compose.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
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "2"
services:
consul1:
image: "consul:1.0.6"
container_name: "consul1"
hostname: "consul1"
environment:
- CONSUL_LOCAL_CONFIG={"acl_datacenter":"dc1", "acl_master_token":"token"}
ports:
- "8500:8500"
- "8600:53"
command: "agent -server -bootstrap -client=0.0.0.0 -node-id=5a3ff1a9-4447-4733-8dda-e8166e0b5c21 -ui"
consul2:
image: "consul:1.0.6"
container_name: "consul2"
hostname: "consul2"
expose:
- "8500"
- "8600"
command: "agent -join=consul1 -client=0.0.0.0"
depends_on:
- consul1
akka_node1:
image: "constructr-coordination-demo:latest"
container_name: "akka_node1"
hostname: "akka_node1"
ports:
- "8000:8000"
depends_on:
- consul1
- consul2
akka_node2:
image: "constructr-coordination-demo:latest"
container_name: "akka_node2"
hostname: "akka_node2"
depends_on:
- consul1
- consul2
akka_node3:
image: "constructr-coordination-demo:latest"
container_name: "akka_node3"
hostname: "akka_node3"
depends_on:
- consul1
- consul2