forked from Deiru2k/miracle-tv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (85 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (85 loc) · 2.01 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
version: "3.3"
networks:
external:
internal:
internal: false
services:
nginx:
image: "alqutami/rtmp-hls"
restart: always
ports:
- "127.0.0.1:1337:1337"
volumes:
- ./docker-compose/rtmp-configs/nginx-rtmp/nginx.conf.template:/etc/nginx/nginx.conf
- /home/ubuntu/miracle-data/media:/mnt/media
- /home/ubuntu/miracle-data/streaming/hls:/mnt/hls
depends_on:
- miracle-backend
- miracle-frontend
networks:
- external
- internal
ome:
image: "airensoft/ovenmediaengine:0.12.9"
restart: always
ports:
- "1935:1935"
- "3333:3333"
- "3478:3478"
- "8082:8080"
- "10000:10000/udp"
networks:
- external
- internal
volumes:
- ./docker-compose/rtmp-configs/ome/:/opt/ovenmediaengine/bin/origin_conf
- ./docker-compose/rtmp-configs/ome_edge/:/opt/ovenmediaengine/bin/edge_conf
rethinkdb:
image: "rethinkdb"
restart: always
volumes:
- /home/ubuntu/miracle-data/db:/data
networks:
- internal
miracle-backend:
build:
context: "."
dockerfile: "./backend.Dockerfile"
restart: always
ports:
- "4000:4000"
depends_on:
- rethinkdb
volumes:
- ./docker-compose/docker.miracle-tv.json:/conf/config.json
- /home/ubuntu/miracle-data:/data/miracle-tv
environment:
- MIRACLE_CONFIG=/conf/config.json
networks:
- internal
miracle-frontend:
build:
context: "."
dockerfile: "./frontend.Dockerfile"
networks:
- internal
restart: always
ports:
- "3000:3000"
depends_on:
- miracle-backend
command:
[
"./wait-for",
"-t",
"30",
"http://miracle-backend:4000/api/hook/ping",
"--",
"yarn",
"run:client",
]
environment:
- NEXT_PUBLIC_MEDIA_URL=https://miracle-tv.live/media
- NEXT_PUBLIC_SOCKET_PREFIX=/api
- NEXT_PUBLIC_ENV=production
- NEXT_PUBLIC_API_URL=https://miracle-tv.live/api