Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 2.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (69 loc) · 2.19 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
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
# ============================================================================
# 1. Java RTSP/RTP Streaming Server (Production Server)
# ============================================================================
server-java:
build:
context: ./server-java
dockerfile: Dockerfile
container_name: streaming-server-java
ports:
- "8554:8554/tcp" # RTSP TCP Control Port
- "25000:25000/udp" # RTP UDP Media Port
restart: unless-stopped
networks:
streaming-net:
aliases:
- server-java
# ============================================================================
# 2. Python RTSP/RTP Streaming Server (Alternative / Profile)
# ============================================================================
server-python:
build:
context: ./server-python
dockerfile: Dockerfile
container_name: streaming-server-python
ports:
- "8555:8554/tcp"
restart: unless-stopped
profiles: ["python-backend"]
networks:
- streaming-net
# ============================================================================
# 3. Python RTSP Client Bridge & Middleware (FastAPI + WebSocket)
# ============================================================================
bridge-python:
build:
context: ./bridge-python
dockerfile: Dockerfile
container_name: streaming-bridge-python
ports:
- "8000:8000/tcp" # FastAPI HTTP & WebSocket
environment:
- SERVER_HOST=server-java
- SERVER_PORT=8554
- RTP_PORT=25000
depends_on:
- server-java
restart: unless-stopped
networks:
- streaming-net
# ============================================================================
# 4. React Vite Web UI (Nginx Production Frontend)
# ============================================================================
web-ui:
build:
context: ./web-ui
dockerfile: Dockerfile
container_name: streaming-web-ui
ports:
- "3000:80" # Web UI Dashboard Access
depends_on:
- bridge-python
restart: unless-stopped
networks:
- streaming-net
networks:
streaming-net:
driver: bridge