-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
103 lines (101 loc) · 2.01 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
networks:
app_net:
ipam:
driver: default
config:
- subnet: "172.19.0.0/16"
services:
consula:
image: consul
tmpfs:
- /tmp
- /data
expose:
- "8300"
- "8301"
- "8302"
- "8301/udp"
- "8302/udp"
ports:
- "8501:8501"
- "8500:8500"
- "8600:8600"
- "8600:8600/udp"
volumes:
- ./consul/conf:/conf:ro
- ./consul/certs:/certs:ro
networks:
- app_net
command: agent -server -config-dir=/conf -bootstrap-expect=3 -retry-join=consulb -retry-join=consulc -node-meta rz:a
consulb:
image: consul
tmpfs:
- /tmp
- /data
expose:
- "8300"
- "8301"
- "8302"
- "8301/udp"
- "8302/udp"
- "8600"
- "8600/udp"
ports:
- "8500"
volumes:
- ./consul/conf:/conf:ro
- ./consul/certs:/certs:ro
networks:
- app_net
command: agent -server -config-dir=/conf -retry-join=consula -retry-join=consulc -node-meta rz:b
consulc:
image: consul
tmpfs:
- /tmp
- /data
expose:
- "8300"
- "8301"
- "8302"
- "8301/udp"
- "8302/udp"
- "8600"
- "8600/udp"
ports:
- "8500"
volumes:
- ./consul/conf:/conf:ro
- ./consul/certs:/certs:ro
networks:
- app_net
command: agent -server -config-dir=/conf -retry-join=consula -retry-join=consulb -node-meta rz:c
vault:
image: vault
environment:
- AWS_DEFAULT_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- VAULT_API_ADDR=https://10.10.10.133:8200
- VAULT_CLUSTER_ADDR=https://172.19.0.10:8201
cap_add:
- IPC_LOCK
expose:
- "8201"
ports:
- "8200:8200"
tmpfs:
- /raft
- /tmp
volumes:
- ./vault/conf:/conf:ro
- ./vault/certs:/certs:ro
- ./vault/logs:/logs:rw
restart: unless-stopped
command: server -config=/conf
depends_on:
- "consula"
- "consulb"
- "consulc"
networks:
app_net:
ipv4_address: 172.19.0.10