-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy pathdocker-compose.mobile.yml
More file actions
47 lines (46 loc) · 1.84 KB
/
Copy pathdocker-compose.mobile.yml
File metadata and controls
47 lines (46 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
# =============================================================================
# Octop — Remote Phone (mobile) compose overlay for local / DinD testing
#
# Usage (from repo root):
# # once: download platform-tools next to the repo
# mkdir -p .tools && cd /tmp && curl -fsSL -o pt.zip \
# https://dl.google.com/android/repository/platform-tools-latest-linux.zip \
# && unzip -qo pt.zip -d /workspace/Octop/.tools
#
# docker compose -f docker/docker-compose.mobile.yml up -d --build
#
# This file is standalone (not an overlay) because ``network_mode: host``
# conflicts with published ``ports`` from the base compose file.
#
# Host prerequisites:
# - Docker socket usable by the container
# - /dev/binder or /dev/binderfs on the host
# - Enough free disk for the Redroid image
# =============================================================================
services:
octop:
build:
context: ..
dockerfile: docker/Dockerfile
image: octop:latest
container_name: octop
restart: unless-stopped
privileged: true
network_mode: host
volumes:
- ${OCTOP_DATA:-~/.octop}:/data/.octop
- /var/run/docker.sock:/var/run/docker.sock
- /dev/binderfs:/dev/binderfs
- ${OCTOP_PLATFORM_TOOLS:-../.tools/platform-tools}:/opt/android-sdk/platform-tools:ro
environment:
- HOME=/data
- OCTOP_BIND_HOST=0.0.0.0
- OCTOP_PORT=${OCTOP_PORT:-8088}
- OCTOP_LOG_LEVEL=${OCTOP_LOG_LEVEL:-info}
- OCTOP_DEFAULT_PASSWORD=${OCTOP_DEFAULT_PASSWORD:-Octop123}
- OCTOP_ADMIN_USERNAME=${OCTOP_ADMIN_USERNAME:-admin}
- OCTOP_MOBILE_ADB_HOST=${OCTOP_MOBILE_ADB_HOST:-127.0.0.1:5555}
- OCTOP_MOBILE_CONTAINER=${OCTOP_MOBILE_CONTAINER:-octop-mobile-android}
- OCTOP_ENABLE_MOBILE=${OCTOP_ENABLE_MOBILE:-1}
- ANDROID_HOME=/opt/android-sdk
- ANDROID_SDK_ROOT=/opt/android-sdk