-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (59 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
65 lines (59 loc) · 1.4 KB
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
version: "3.8"
services:
rtsp-server:
build: ./rtsp/docker
container_name: rtsp-mock
ports:
- "8554:8554" # RTSP
- "8888:8888" # HTTP
restart: unless-stopped
networks:
- mock-network
http-server:
build: ./http/docker
container_name: http-mock
ports:
- "8080:8080"
restart: unless-stopped
networks:
- mock-network
webrtc-server:
build: ./webrtc/docker
container_name: webrtc-mock
ports:
- "8443:8443"
restart: unless-stopped
networks:
- mock-network
grpc-server:
build: ./grpc/docker
container_name: grpc-mock
ports:
- "50051:50051" # gRPC
- "8000:8000" # Prometheus metrics
restart: unless-stopped
networks:
- mock-network
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import grpc; channel = grpc.insecure_channel('localhost:50051'); import example_pb2, example_pb2_grpc; stub = example_pb2_grpc.GreeterStub(channel); response = stub.SayHello(example_pb2.HelloRequest(name='healthcheck'), timeout=5)",
]
interval: 30s
timeout: 10s
retries: 3
mqtt-broker:
build: ./mqtt/docker
container_name: mqtt-mock
ports:
- "1883:1883" # MQTT
- "9001:9001" # MQTT over WebSocket
restart: unless-stopped
networks:
- mock-network
networks:
mock-network:
driver: bridge