-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.redroid.debian.yaml
More file actions
68 lines (65 loc) · 1.84 KB
/
compose.redroid.debian.yaml
File metadata and controls
68 lines (65 loc) · 1.84 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
# This example is specific for Debian, run the following commands before starting the compose:
# modprobe binder_linux devices=binder1,binder2,binder3,binder4,binder5,binder6
# chmod 666 /dev/binder*
#
# You may find the Redroid deploy instructions for other distros here: https://github.com/remote-android/redroid-doc/tree/master/deploy
#
# The ./init.d folder should contain the "setup.sh" and "reset.sh" scripts
services:
dns:
image: dockurr/dnsmasq:latest
container_name: dns
command: ["dnsmasq", "-k", "--log-facility=-", "-C", "/etc/dnsmasq.conf"]
volumes:
- ./dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf:ro
- ./dnsmasq/hosts:/etc/dnsmasq.d/hosts:ro
networks:
internal_net:
ipv4_address: 172.28.0.53
# Not strictly required for basic DNS, but harmless and sometimes useful
cap_add:
- NET_ADMIN
android-device:
privileged: true
volumes:
- /dev/binder1:/dev/binder
- /dev/binder2:/dev/hwbinder
- /dev/binder3:/dev/vndbinder
container_name: redroid
image: redroid/redroid:14.0.0-latest
networks:
internal_net:
ipv4_address: 172.28.0.10
dns:
- 172.28.0.53
command:
[
"ro.debuggable=0",
"ro.boot.verifiedbootstate=orange",
"androidboot.redroid_net_ndns=1",
"androidboot.redroid_net_dns1=172.28.0.53",
]
droidground:
build: ../../..
container_name: droidground
restart: unless-stopped
ports:
- 4242:4242
networks:
internal_net:
ipv4_address: 172.28.0.20
public_net: {}
volumes:
- ./init.d:/init.d
env_file:
- net-multi-step.env
networks:
internal_net:
ipam:
config:
- subnet: 172.28.0.0/24
public_net:
# normal network with internet access (default behavior)
ipam:
config:
- subnet: 172.29.0.0/24