forked from zom-bi/zomstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.default.yml
executable file
·60 lines (54 loc) · 1.47 KB
/
docker-compose.default.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
58
59
60
version: '3'
networks:
# configuration for external traefik network
# web:
# external:
# name: proxy_web
internal:
ipam:
driver: default
config:
- subnet: 10.23.42.40/29
services:
auth: # PSK Authentication Service
build: ./docker-python/.
command: python /code/auth.py
volumes:
- "./auth:/code"
# set the PSK Password for the Auth Daemon here
environment:
- password=ex4mple_p4ssw0rd!
networks:
internal:
ipv4_address: 10.23.42.42
nginx-rtmp: # nginx rtmp server
build: ./docker-nginx-rtmp/.
ports:
- "1935:1935"
# if there is no proxy in front of this set your frontend port here
# if you are using traefik instead set the configuration labels below
# - "8080:8080"
volumes:
- "./config/nginx-rtmp:/usr/local/nginx/conf"
depends_on:
- auth
# these labels are for automatic configuration of traefik
# labels:
# - "traefik.enable=true"
# - "traefik.backend=stream"
# - "traefik.frontend.rule=Host: stream.zom.bi"
# - "traefik.docker.network=proxy_web"
# - "traefik.port=8080"
networks:
# enable the web network for traefik
# web:
internal:
ipv4_address: 10.23.42.43
frontend: # container for python frontend
build: ./docker-python/.
command: uwsgi uwsgi.ini
volumes:
- "./frontend:/code"
networks:
internal:
ipv4_address: 10.23.42.44