-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.simulation.yaml
123 lines (115 loc) · 2.67 KB
/
docker-compose.simulation.yaml
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
networks:
cloud-provider:
name: cloud-provider
driver: bridge
ipam:
config:
- subnet: 192.168.40.0/24
internet:
name: internet
driver: bridge
ipam:
config:
- subnet: 192.168.45.0/24
iot:
name: iot
driver: bridge
ipam:
config:
- subnet: 192.168.50.0/24
services:
coap-server:
image: qig
container_name: coap-server
command: >
bash -c "coap_server \
--message_size_range 50,500 \
--host 0.0.0.0 \
--port 5684 \
--num-clients 500 \
--log-level INFO"
restart: always
networks:
- cloud-provider
mqtt-broker:
image: eclipse-mosquitto:latest
container_name: mqtt-broker
volumes:
- ./extras/mosquitto.conf:/mosquitto/config/mosquitto.conf
restart: always
networks:
- cloud-provider
qig-server:
image: qig
container_name: qig-server
command: >
bash -c "qig_server \
--quic_server_host 0.0.0.0 \
--quic_server_port 4433 \
--cert_file tests/certs/cert.pem \
--key_file tests/certs/key.pem \
--mqtt_broker_host mqtt-broker \
--mqtt_broker_port 1883 \
--log-level INFO"
restart: always
networks:
- cloud-provider
- internet
qig-client:
image: qig
container_name: qig-client
command: >
bash -c "qig_client \
--quic_server_host qig-server \
--quic_server_port 4433 \
--coap_host 0.0.0.0 \
--coap_port 5683 \
--mqtt_sn_host 0.0.0.0 \
--mqtt_sn_port 1883 \
--log-level INFO"
restart: always
networks:
- internet
- iot
scale-coap-clients:
image: qig
container_name: scale-coap-clients
command: >
bash -c "coap_client \
--message_size_range 490,510 \
--coap-server-host coap-server \
--coap-server-port 5684 \
--coap-proxy-host qig-client \
--coap-proxy-port 5683 \
--num-clients 100 \
--num-requests 100 \
--starting-port 30001 \
--req-type post \
--loops 1 \
--log-level CRITICAL"
networks:
- iot
scale-mqtt-sn-clients:
image: qig
container_name: scale-mqtt-sn-clients
command: >
bash -c "mqtt_sn_client \
--message_size_range 490,510 \
--mqtt-sn-gw-host qig-client \
--mqtt-sn-gw-port 1883 \
--num-clients 100 \
--num-requests 100 \
--num-topics 10 \
--starting-port 31001 \
--loops 1 \
--log-level CRITICAL"
networks:
- iot
mqtt-sn-client:
build:
context: ./extras
dockerfile: mqtt-sn-client.Dockerfile
container_name: mqtt-sn-client
command: tail -f /dev/null
networks:
- iot