-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
80 lines (73 loc) · 1.76 KB
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
---
##
consul1:
image: soedomoto/consul-cluster:local
container_name: consul1
hostname: consul1
links:
- consul2
- consul3
ports:
- "8301:8300"
- "8401:8400"
- "8501:8500"
- "8601:8600"
- "9001:9001"
command: /bin/consul agent -server -bootstrap -ui -client 0.0.0.0 -data-dir /opt/consul/data -disable-host-node-id -retry-join consul2 -retry-join consul3
consul2:
image: soedomoto/consul-cluster:local
container_name: consul2
hostname: consul2
ports:
- "8302:8300"
- "8402:8400"
- "8502:8500"
- "8602:8600"
- "9002:9001"
command: /bin/consul agent -server -ui -client 0.0.0.0 -data-dir /opt/consul/data -disable-host-node-id
consul3:
image: soedomoto/consul-cluster:local
container_name: consul3
hostname: consul3
ports:
- "8303:8300"
- "8403:8400"
- "8503:8500"
- "8603:8600"
- "9003:9001"
command: /bin/consul agent -server -ui -client 0.0.0.0 -data-dir /opt/consul/data -disable-host-node-id
load-balancer:
image: soedomoto/load-balancer:local
container_name: load_balancer
hostname: load-balancer
links:
- consul2:consul
ports:
- "80:80"
service-account-1:
image: soedomoto/service-account:local
container_name: service_account_1
hostname: service-account-1
links:
- consul2:consul
ports:
- "8081:80"
command: python /app/app.py
service-account-2:
image: soedomoto/service-account:local
container_name: service_account_2
hostname: service-account-2
links:
- consul3:consul
ports:
- "8082:80"
command: python /app/app.py
service-susenas-1:
image: soedomoto/service-susenas:local
container_name: service_susenas_1
hostname: service-susenas-1
links:
- consul2:consul
ports:
- "8083:80"
command: java -jar data-susenas-1.0-SNAPSHOT.jar