-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.docker-android.yaml
More file actions
55 lines (52 loc) · 1.33 KB
/
compose.docker-android.yaml
File metadata and controls
55 lines (52 loc) · 1.33 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
# 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:
image: halimqarroum/docker-android:api-33
devices:
- /dev/kvm
ports:
- 5555:5555 # No need to expose this, but it's useful for debugging purposes
container_name: docker-android
networks:
internal_net:
ipv4_address: 172.28.0.10
dns:
- 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:
internal: true
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