-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·152 lines (142 loc) · 5.43 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
152
version: '3'
services:
virtual-vehicle-utility:
image: bringauto/virtual-vehicle-utility:v3.1.4
profiles: ["all", "without-module-gateway", "without-external-server", "core", "virtual-vehicle-utility", "without-fleet-management"]
volumes:
- ./docker_volumes/virtual-vehicle-utility:/virtual-vehicle-utility/log
- ./configuration/virtual-vehicle-utility:/virtual-vehicle-utility/config
entrypoint: ["/virtual-vehicle-utility/bin/virtual-vehicle-utility",
"--config=/virtual-vehicle-utility/config/config.json"]
restart: "no"
networks:
- bring-emulator
virtual-plc:
image: bringauto/virtual-plc:v1.0.0
profiles: ["all", "without-module-gateway", "without-external-server", "core", "virtual-plc", "without-fleet-management"]
volumes:
- ./docker_volumes/virtual-plc:/home/bringauto/virtual-plc/log
- ./configuration/virtual-plc:/home/bringauto/virtual-plc/config
entrypoint: ["/home/bringauto/virtual-plc/bin/virtual_plc",
"--config=/home/bringauto/virtual-plc/config/config.json"]
restart: "no"
networks:
- bring-emulator
module-gateway:
image: bringauto/module-gateway:v1.1.6
profiles: ["all", "without-devices", "without-external-server", "module-gateway", "core", "without-fleet-management"]
volumes:
- ./docker_volumes/module-gateway:/home/bringauto/log/
- ./configuration/module-gateway:/home/bringauto/config/
ports:
- 1636:1636
entrypoint: ["/home/bringauto/module-gateway/bin/module-gateway-app",
"--config-path=/home/bringauto/config/config.json",
"--verbose"]
restart: "no"
networks:
- bring-emulator
vernemq:
image: bringauto/vernemq:1.13.0
profiles: ["all", "without-devices", "without-module-gateway", "without-external-server", "mqtt", "without-fleet-management"]
volumes:
- ./docker_volumes/vernemq:/vernemq/log/log/
- ./configuration/vernemq:/etc/vernemq/
ports:
- 1883:1883
- 8883:8883
restart: "no"
networks:
- bring-emulator
external-server:
image: bringauto/external-server:v1.1.9
profiles: ["all", "without-devices", "without-module-gateway", "without-external-server", "without-fleet-management"]
volumes:
- ./docker_volumes/external-server:/home/bringauto/log
- ./configuration/external-server:/home/bringauto/config/
entrypoint: ["python3",
"/home/bringauto/external_server/external_server_main.py",
"--config=/home/bringauto/config/config.json" ]
restart: "no"
networks:
- bring-emulator
http-api:
image: bringauto/fleet-protocol-http-api:v2.4.2
profiles: ["all", "without-devices", "without-module-gateway", "http-api", "without-fleet-management"]
ports:
- 8080:8080
restart: "no"
depends_on:
postgresql-database:
condition: service_healthy
networks:
- bring-emulator
volumes:
- ./configuration/http-api/config.json:/usr/src/app/config.json
entrypoint:
["python3", "-m", "server",
"config.json",
"--location=postgresql-database"]
integration-layer:
image: bringauto/fleet-management-integration-layer:v2.0.1
profiles: ["all", "without-devices", "without-module-gateway", "without-fleet-management"]
restart: "no"
networks:
- bring-emulator
volumes:
- ./configuration/integration-layer:/usr/src/app/config
- ./docker_volumes/integration-layer:/usr/src/app/log
entrypoint:
["python3", "-m", "fleetman_integration", "config/config.json"]
management-api:
image: bringauto/fleet-management-http-api:v3.1.6
profiles: ["all", "without-devices", "without-module-gateway", "management-api", "without-fleet-management"]
ports:
- 8081:8081
restart: "no"
depends_on:
postgresql-database:
condition: service_healthy
networks:
- bring-emulator
volumes:
- ./configuration/management-api/config.json:/usr/src/app/config.json
entrypoint:
["python3", "-m", "fleet_management_api",
"config.json",
"--location=postgresql-database"]
virtual-fleet-management:
image: bringauto/virtual-fleet-management:v3.0.1
profiles: ["all", "without-devices", "without-module-gateway"]
restart: "no"
depends_on:
management-api:
condition: service_started
networks:
- bring-emulator
volumes:
- ./configuration/virtual-fleet-management/:/home/bringauto/virtual-fleet-management/resources/
- ./docker_volumes/virtual-fleet-management/:/home/bringauto/virtual-fleet-management/log/
entrypoint:
["/home/bringauto/virtual-fleet-management/virtual-fleet-management",
"-config=/home/bringauto/virtual-fleet-management/resources/${ETNA_VFM_CONFIG:-config.json}",
"-scenario-dir=/home/bringauto/virtual-fleet-management/resources/scenarios/${ETNA_VFM_SCENARIO:-default}/",
]
postgresql-database:
image: postgres:16
profiles: ["all", "without-devices", "without-module-gateway", "http-api", "management-api", "without-fleet-management"]
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
restart: "no"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
networks:
- bring-emulator
ports:
- 5432:5432
volumes:
- ./db/insert_test_api_key.sh:/docker-entrypoint-initdb.d/insert_test_api_key.sh
networks:
bring-emulator:
name: bring-emulator