-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.59 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
networks:
cryze_network:
driver: bridge
services:
mediamtx:
image: bluenviron/mediamtx:latest-ffmpeg
network_mode: service:cryze_android_app
privileged: true
environment:
MTX_WEBRTCADDITIONALHOSTS: <Your IP Address>
cryze_android_app:
restart: unless-stopped
networks:
- cryze_network
build:
context: ./cryze_android_app
dockerfile: Dockerfile
args:
CRYZE_RTSP_SERVER: "localhost"
CRYZE_BACKEND_URL: "http://cryze_api:8080" # change if you want to host on a different machine
privileged: true
ports:
- 5555:5555
# mediamtx ports
- 8554:8554 # RTSP feeds
- 8888:8888 # HLS
- 8889:8889/tcp # WebRTC
- 8189:8189/udp # WebRTC over udp
command:
# arch specifics, see the redroid docs
- androidboot.use_memfd=1
# critical for redroid to be able to resolve DNS queries for containerized services
- androidboot.redroid_net_ndns=1
- androidboot.redroid_net_dns1=127.0.0.11
# not really used but it doesn't hurt to have it. Might save a smidge of CPU at times.
- androidboot.redroid_gpu_mode=host
- androidboot.redroid_gpu_node=/dev/dri/renderD128
cryze_api:
## volume mount /data
## make sure .env is updated
restart: unless-stopped
volumes:
- cryze_api_cryze_data:/data
networks:
- cryze_network
build:
context: ./cryze_api
dockerfile: Dockerfile
ports:
- 8080:8080
env_file:
- .env
volumes:
cryze_api_cryze_data: # used for storing custom camera routes, wyze_sdk credentials/refresh tokens