Files

101 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2024-02-20 17:06:32 +00:00
version: "4"
services:
android-emulator:
2024-04-23 18:02:44 +03:00
build:
2024-02-20 17:06:32 +00:00
context: .
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis
ports:
- 5554:5554
2026-01-02 15:07:55 -05:00
- 127.0.0.1:5555:5555
2024-02-20 17:06:32 +00:00
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
2024-04-23 18:02:44 +03:00
- MEMORY=16384
- CORES=16
privileged: true
2024-02-20 17:06:32 +00:00
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
2024-04-23 21:30:37 +03:00
- ./android_avd:/data
2024-02-20 17:06:32 +00:00
extra_hosts:
2024-04-23 18:02:44 +03:00
- "host.docker.internal:host-gateway"
devices:
- /dev/kvm:/dev/kvm
2024-02-20 17:06:32 +00:00
android-emulator-cuda:
build:
context: .
dockerfile: ./Dockerfile.gpu
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis
ports:
- 5554:5554
2026-01-02 15:07:55 -05:00
- 127.0.0.1:5555:5555
2024-02-20 17:06:32 +00:00
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
2024-04-23 18:02:44 +03:00
- MEMORY=16384
- CORES=16
privileged: true
2024-02-20 17:06:32 +00:00
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
extra_hosts:
2024-04-23 18:02:44 +03:00
- "host.docker.internal:host-gateway"
2024-02-20 17:06:32 +00:00
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
android-emulator-cuda-store:
build:
context: .
dockerfile: ./Dockerfile.gpu
args:
- API_LEVEL=34
- CMD_LINE_VERSION=11076708_latest
- IMG_TYPE=google_apis_playstore
ports:
- 5554:5554
2026-01-02 15:07:55 -05:00
- 127.0.0.1:5555:5555
2024-02-20 17:06:32 +00:00
environment:
- DISABLE_ANIMATION=false
- DISABLE_HIDDEN_POLICY=true
- SKIP_AUTH=false
#- ANDROID_ADB_SERVER_ADDRESS=host.docker.internal
2024-04-23 18:02:44 +03:00
- MEMORY=16384
- CORES=16
privileged: true
2024-02-20 17:06:32 +00:00
tty: true
stdin_open: true
volumes:
- ./keys/adbkey:/root/.android/adbkey:ro
- ./keys/adbkey.pub:/root/.android/adbkey.pub:ro
# volumes:
# - ./:/mnt
extra_hosts:
2024-04-23 18:02:44 +03:00
- "host.docker.internal:host-gateway"
2024-02-20 17:06:32 +00:00
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]