-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 1.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 1.07 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
version: '3'
services:
nginx-rtmp:
build: nginx-rtmp
restart: unless-stopped
# Host networking is necessary because RTMP can't see client IPs otherwise
network_mode: host
volumes:
- ./config/nginx-rtmp:/etc/nginx/applications:ro
- ./segments:/srv/segments
- ./recordings:/srv/recordings
environment:
# Set these to match a user on your host if you are using bind mounts
# Must use IDs >=102 to not conflict with alpine default users
APP_UID: 1000
APP_GID: 1000
# Parameters for listen statements in nginx, can be port or addr:port
HTTP_LISTEN: 8080
RTMP_LISTEN: 1935
# Number of workers to run, or "auto" to use cpu core count
# When not using the http server, only 1 process is utilized anyway
NGINX_WORKER_PROCESSES: auto
NGINX_WORKER_CONNECTIONS: 1024
# Also counting internal push/pull connections
RTMP_MAX_CONNECTIONS: 1024
icecast:
build: icecast
restart: unless-stopped
ports:
- 8090:8000
volumes:
- ./config/icecast:/etc/icecast:ro