-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.37 KB
/
docker-compose.yml
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
version: "3.9"
services:
iptv_restream_frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
# Set this to the server ip/domain, if your backend is deployed on a different server
#VITE_BACKEND_URL: http://123.123.123.123:5000
VITE_STREAM_DELAY: 18
VITE_STREAM_PROXY_DELAY: 30
# Optional settings for synchronization
#VITE_SYNCHRONIZATION_TOLERANCE: 0.8
#VITE_SYNCHRONIZATION_MAX_DEVIATION: 4
#VITE_SYNCHRONIZATION_ADJUSTMENT: 0.06
#VITE_SYNCHRONIZATION_MAX_ADJUSTMENT: 0.16
networks:
- app-network
iptv_restream_backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- streams_data:/streams
- channels:/channels
environment:
STORAGE_PATH: /streams/
# If you have problems with the playlist, set the backend url manually here
#BACKEND_URL: http://localhost:5000
networks:
- app-network
# Nginx Reverse Proxy
iptv_restream_nginx:
image: nginx:alpine
volumes:
- ./deployment/nginx/nginx.conf:/etc/nginx/nginx.conf
- streams_data:/streams
ports:
- "80:80"
networks:
- app-network
volumes:
streams_data:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
channels:
# Internal docker network
networks:
app-network:
driver: bridge