-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (64 loc) · 1.52 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
version: "3"
services:
# 1. TCU with attached TPM (via spi-nw)
# TCU (connected via eth-nw to ECU_U and ECU_C)
tcu:
container_name: update-distribution-tcu
networks:
update-distribution-spi-nw:
ipv4_address: 10.0.0.10
update-distribution-eth-nw:
ipv4_address: 20.0.0.10
build:
context: ./
dockerfile: docker_files/tcu.docker
expose:
- "5001"
depends_on:
- swtpm
swtpm:
container_name: update-distribution-swtpm
networks:
update-distribution-spi-nw:
ipv4_address: 10.0.0.20
build:
context: ./
dockerfile: docker_files/swtpm.docker
expose:
- "2321"
- "2322"
# 2. ECU_U (connected via eth-nw to TCU and ECU_C)
ecuu:
container_name: update-distribution-ecuu
networks:
update-distribution-eth-nw:
ipv4_address: 20.0.0.20
build:
context: ./
dockerfile: docker_files/ecu.docker
expose:
- "5002"
# 3. ECU_C (connected via eth-nw to TCU and ECU_U)
ecuc:
container_name: update-distribution-ecuc
networks:
update-distribution-eth-nw:
ipv4_address: 20.0.0.30
build:
context: ./
dockerfile: docker_files/ecu.docker
expose:
- "5003"
networks:
update-distribution-spi-nw:
name: update-distribution-spi-nw
ipam:
driver: default
config:
- subnet: "10.0.0.0/24"
update-distribution-eth-nw:
name: update-distribution-eth-nw
ipam:
driver: default
config:
- subnet: "20.0.0.0/24"