-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.integration.yml
More file actions
97 lines (92 loc) · 2.35 KB
/
docker-compose.integration.yml
File metadata and controls
97 lines (92 loc) · 2.35 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.8'
services:
# Real datarhei Restreamer instance
restreamer:
image: datarhei/restreamer:latest
container_name: obs-integration-restreamer
ports:
- "8080:8080" # HTTP API
- "1935:1935" # RTMP input
- "8181:8181" # HLS/DASH output
environment:
- CORE_API_AUTH_ENABLE=true
- CORE_API_AUTH_USERNAME=admin
- CORE_API_AUTH_PASSWORD=testpass
- CORE_LOG_LEVEL=debug
- CORE_LOG_TOPICS=all
volumes:
- restreamer-config:/core/config
- restreamer-data:/core/data
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp
- /var/tmp
networks:
- integration-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v3/ping"]
interval: 5s
timeout: 3s
retries: 20
start_period: 60s
# RTMP server for receiving streams
rtmp-server:
image: tiangolo/nginx-rtmp:latest
container_name: obs-integration-rtmp
ports:
- "1936:1935" # RTMP port (different from Restreamer)
- "8088:8088" # HTTP stats
volumes:
- ./tests/integration/nginx-rtmp.conf:/etc/nginx/nginx.conf:ro
- rtmp-recordings:/tmp/recordings
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp
- /var/run
- /var/cache/nginx
networks:
- integration-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/stat"]
interval: 5s
timeout: 3s
retries: 5
# Test runner container
test-runner:
build:
context: .
dockerfile: Dockerfile.integration-test
container_name: obs-integration-tests
depends_on:
restreamer:
condition: service_healthy
rtmp-server:
condition: service_healthy
environment:
- RESTREAMER_HOST=restreamer
- RESTREAMER_PORT=8080
- RESTREAMER_USERNAME=admin
- RESTREAMER_PASSWORD=testpass
- RTMP_HOST=rtmp-server
- RTMP_PORT=1935
volumes:
- .:/workspace:ro
- integration-results:/results
networks:
- integration-network
command: /workspace/scripts/run-integration-tests.sh
networks:
integration-network:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16
volumes:
restreamer-config:
restreamer-data:
rtmp-recordings:
integration-results: