-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
58 lines (53 loc) · 1.21 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
version: '3.7'
services:
ca:
container_name: "my_private_ca"
hostname: "my_private_ca"
build:
context: ./ca
image: lmtx_certs_ca:0.1
volumes:
- ca_certificate:/root/ca/certificate/
- csr_vol_mq:/var/csr/mq/
- csr_vol_a:/var/csr/client_a/
- csr_vol_b:/var/csr/client_b/
mq_broker:
container_name: "mq_broker"
hostname: "mq_broker"
build:
context: ./mq_broker
image: lmtx_certs_mq_broker:0.1
depends_on:
- ca
volumes:
- ca_certificate:/etc/mosquitto/ca_certificates/
- csr_vol_mq:/var/csr/
client_a:
container_name: "client_a"
hostname: "client_a"
build:
context: ./clients
dockerfile: Dockerfile-client_a
image: lmtx_certs_client_a:0.1
depends_on:
- ca
volumes:
- ca_certificate:/client_a/ca/
- csr_vol_a:/client_a/csr/
client_b:
container_name: "client_b"
hostname: "client_b"
build:
context: ./clients
dockerfile: Dockerfile-client_b
image: lmtx_certs_client_b:0.1
depends_on:
- ca
volumes:
- ca_certificate:/client_b/ca/
- csr_vol_b:/client_b/csr/
volumes:
ca_certificate:
csr_vol_mq:
csr_vol_a:
csr_vol_b: