-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
155 lines (155 loc) · 4.08 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
153
154
155
version: '3.7'
services:
server_core:
container_name: server_core
build:
context: . # context set to repo root
target: server_core
entrypoint: [/app/server_core, --logfile]
environment:
- GEN2MODULEIP=atserver
volumes:
- ./logs:/app/logs
ports: # for testing can be removed
- "8081:8081"
networks:
internal:
aliases:
- srvcore
external: # for testing can be removed
aliases:
- srvcore
mgr_service:
container_name: mgr_service
build:
context: . # context set to repo root
target: service_mgr
entrypoint: [/app/service_mgr, --uds, /app/uds.sock, --logfile]
depends_on:
- "server_core"
volumes:
- ./logs:/app/logs
environment:
- GEN2MODULEIP=srvcore
networks:
internal:
aliases:
- servicemgr
server_at:
container_name: server_at
build:
context: . # context set to repo root
target: at_server
entrypoint: [/app/at_server, --logfile]
depends_on:
- "server_core"
volumes:
- ./logs:/app/logs
environment:
- GEN2MODULEIP=srvcore
ports:
- "8600:8600"
networks:
internal:
aliases:
- atserver
external:
aliases:
- atserver
server_agt:
container_name: server_agt
build:
context: . # context set to repo root
target: agt_server
entrypoint: [/app/agt_server, --logfile]
depends_on:
- "server_core"
volumes:
- ./logs:/app/logs
environment:
- GEN2MODULEIP=srvcore
ports:
- "7500:7500"
networks:
internal:
aliases:
- agtserver
external:
aliases:
- agtserver
mgr_http:
container_name: mgr_http
build:
context: . # context set to repo root
target: http_mgr
entrypoint: [/app/http_mgr, --logfile]
working_dir: /app
depends_on:
- "server_core"
- "mgr_ws"
volumes:
- ./logs:/app/logs
ports:
- "8888:8888"
- "444:444"
environment:
- GEN2MODULEIP=srvcore
networks:
- internal
- external
mgr_ws:
container_name: mgr_ws
build:
context: . # context set to repo root
target: ws_mgr
entrypoint: [/app/ws_mgr, --logfile]
depends_on:
- "server_core"
volumes:
- ./logs:/app/logs
environment:
- GEN2MODULEIP=srvcore
ports:
- "8080:8080"
- "443:443"
networks:
- internal
- external
mgr_mqtt:
container_name: mgr_mqtt
build:
context: . # context set to repo root
target: mqtt_mgr
entrypoint: [/app/mqtt_mgr, --logfile]
depends_on:
- "server_core"
volumes:
- ./logs:/app/logs
environment:
- GEN2MODULEIP=srvcore
ports:
- "1883:1883"
networks:
- internal
- external
tls_client:
container_name: tls_client
build:
context: . # context set to repo root
target: tls_client
networks:
- external
server_web:
container_name: server_web
image: 'httpd:2.4.48-buster'
depends_on:
- "server_core"
volumes:
- ./client/client-1.0/Javascript/:/usr/local/apache2/htdocs/
ports:
- "10080:80"
networks:
- external
networks:
internal:
external: