Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (55 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (55 loc) · 1.75 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
services:
rtmp-server:
image: alexanderwagnerdev/rtmp-server:latest
container_name: rtmp-server
restart: unless-stopped
environment:
LRTMP2_DB: /data/server.db
LRTMP2_API_TOKEN: ${LRTMP2_API_TOKEN:?Set LRTMP2_API_TOKEN in .env}
ports:
- ${RTMP_PORT:-1935}:1935/tcp
- ${RTMP_API_PORT:-8090}:8080/tcp
volumes:
- rtmp-server-data:/data
healthcheck:
test:
- CMD
- wget
- -qO-
- http://127.0.0.1:8080/api/v1/health
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
rtmppanel:
image: alexanderwagnerdev/rtmppanel:latest
container_name: rtmppanel
restart: unless-stopped
environment:
LANG: ${PANEL_LANG:-en}
TZ: ${TZ:-UTC}
LRTMP2_API_URL: http://rtmp-server:8080
LRTMP2_API_TOKEN: ${LRTMP2_API_TOKEN:?Set LRTMP2_API_TOKEN in .env}
LRTMP2_DOMAIN: ${LRTMP2_DOMAIN:-localhost}
LRTMP2_RTMP_PORT: ${RTMP_PORT:-1935}
LRTMP2_APP: ${LRTMP2_APP:-live}
REQUIRE_LOGIN: ${REQUIRE_LOGIN:-True}
USERNAME: ${PANEL_USERNAME:-admin}
PASSWORD: ${PANEL_PASSWORD:?Set PANEL_PASSWORD in .env}
SECRET_KEY: ${SECRET_KEY:?Set a stable SECRET_KEY in .env}
PANEL_DB_PATH: /data/panel.db
SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE:-False}
GUNICORN_WORKERS: ${GUNICORN_WORKERS:-1}
ALLOW_INSECURE_NO_LOGIN: ${ALLOW_INSECURE_NO_LOGIN:-0}
RATELIMIT_STORAGE_URI: ${RATELIMIT_STORAGE_URI:-memory://}
LRTMP2_STATS_URL: ${LRTMP2_STATS_URL:-http://localhost:${RTMP_API_PORT:-8090}}
volumes:
- rtmppanel-data:/data
ports:
- ${RTMPPANEL_PORT:-8001}:8000/tcp
depends_on:
rtmp-server:
condition: service_healthy
volumes:
rtmp-server-data: null
rtmppanel-data: null