-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
52 lines (51 loc) · 1.18 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
version: '3'
services:
youtube_stream_rest_api:
build:
context: ./youtube_stream_image
dockerfile: Dockerfile
image: youtube_stream_rest_api
container_name: youtube_stream
volumes:
- ./youtube_stream_image/code:/code
ports:
- 8888:8888
environment:
- YOUTUBE_LIVE_KEY=<YOUR_YOUTUBE_LIVE_STREAM_KEY>
devices:
- /dev/video0:/dev/video0
entrypoint:
- python3
- /code/stream_rest_api.py
tty: true
device_scan_rest_api:
build:
context: ./device_scanner_image
dockerfile: Dockerfile
image: device_scanner_rest_api
container_name: device_scanner
volumes:
- ./device_scanner_image/code:/code
ports:
- 8887:8887
network_mode: "host"
entrypoint:
- python3
- /code/device_scan_rest_api.py
tty: true
master_app:
build:
context: ./master_app_image
dockerfile: Dockerfile
image: master_app
container_name: master_app
volumes:
- ./master_app_image/code:/code
network_mode: "host"
entrypoint:
- python3
- /code/start_app.py
depends_on:
- device_scan_rest_api
- youtube_stream_rest_api
tty: true