-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
151 lines (141 loc) · 4.06 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
version: '3.4'
# extension fields to make this yaml DRY; see https://docs.docker.com/compose/compose-file/compose-file-v3/#extension-fields
x-volttron: &default-depends
depends_on:
- central
x-default-image: &default-image
image: eclipsevolttron/volttron:tcc-ecolong-local
x-env: &default-env
environment:
- CONFIG=/home/volttron/configs
- LOCAL_USER_ID=1000
- LOG_PREFIX=volttron-log-setup
services:
building1:
<<: *default-depends
<<: *default-image
<<: *default-env
container_name: building1
hostname: building1
networks:
tcc_network:
ipv4_address: 172.28.5.1
ports:
# host_port:container_port
# port for VIP-address
- 22911:22916
# ssl port for web
- 8441:8443
volumes:
- ./platform_configs/building1/agent_configs:/home/volttron/configs
- ./platform_configs/building1/building1_config.yml:/platform_config.yml
- ./source/bcvtb:/code/volttron/bcvtb
- ./logs:/home/volttron/logs
- building1-volume:/home/volttron/db
- ./source/eplus/building1:/home/volttron/building1
smalloffice:
<<: *default-depends
<<: *default-image
<<: *default-env
container_name: smalloffice
hostname: smalloffice
networks:
tcc_network:
ipv4_address: 172.28.5.2
ports:
# host_port:container_port
# port for VIP-address
- 22912:22916
# ssl port for web
- 8442:8443
volumes:
- ./platform_configs/smalloffice/agent_configs:/home/volttron/configs
- ./platform_configs/smalloffice/smalloffice_config.yml:/platform_config.yml
- ./source/bcvtb:/code/volttron/bcvtb
- ./logs:/home/volttron/logs
- smalloffice-volume:/home/volttron/db/
- ./source/eplus/smalloffice:/home/volttron/smalloffice
largeoffice:
<<: *default-depends
<<: *default-image
<<: *default-env
container_name: largeoffice
hostname: largeoffice
networks:
tcc_network:
ipv4_address: 172.28.5.3
ports:
# host_port:container_port
# port for VIP-address
- 22913:22916
# ssl port for web
- 8443:8443
volumes:
- ./platform_configs/largeoffice/agent_configs:/home/volttron/configs
- ./platform_configs/largeoffice/largeoffice_config.yml:/platform_config.yml
- ./source/bcvtb:/code/volttron/bcvtb
- ./logs:/home/volttron/logs
- largeoffice-volume:/home/volttron/db/
- ./source/eplus/largeoffice:/home/volttron/largeoffice
brsw:
<<: *default-depends
<<: *default-image
<<: *default-env
container_name: brsw
hostname: brsw
networks:
tcc_network:
ipv4_address: 172.28.5.4
ports:
# host_port:container_port
# port for VIP-address
- 22914:22916
# ssl port for web
- 8444:8443
volumes:
- ./platform_configs/brsw/agent_configs:/home/volttron/configs
- ./platform_configs/brsw/brsw_config.yml:/platform_config.yml
- ./source/bcvtb:/code/volttron/bcvtb
- ./logs:/home/volttron/logs
- brsw-volume:/home/volttron/db/
- ./source/eplus/brsw:/home/volttron/brsw
central:
build: .
<<: *default-image
<<: *default-env
container_name: central
hostname: central
networks:
tcc_network:
ipv4_address: 172.28.5.5
ports:
# host_port:container_port
# port for VIP-address
- 22915:22916
# ssl port for web
- 8445:8443
volumes:
- ./platform_configs/central/agent_configs:/home/volttron/configs
- ./platform_configs/central/central_platform_config.yml:/platform_config.yml
- ./source/bcvtb:/code/volttron/bcvtb
- ./logs:/home/volttron/logs
- central-volume:/home/volttron/db
networks:
tcc_network:
name: tcc_network
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16
ip_range: 172.28.5.0/24
volumes:
building1-volume:
name: building1-data
smalloffice-volume:
name: smalloffice-data
largeoffice-volume:
name: largeoffice-data
brsw-volume:
name: brsw-data
central-volume:
name: central-data