30 lines
861 B
YAML
30 lines
861 B
YAML
version: "3.8"
|
|
|
|
# ============================================================
|
|
# ANTES DE USAR NO PORTAINER:
|
|
# No servidor via SSH, rode:
|
|
# git clone https://github.com/SEU_USER/SEU_REPO.git
|
|
# cd SEU_REPO
|
|
# docker build -t android-tv .
|
|
# Depois cole este arquivo no Portainer > Stacks > Add Stack
|
|
# ============================================================
|
|
|
|
services:
|
|
android-tv:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: android-tv
|
|
privileged: true
|
|
ports:
|
|
- "6080:6080" # noVNC — http://IP:6080/vnc_lite.html
|
|
- "5555:5555" # ADB
|
|
devices:
|
|
- /dev/kvm:/dev/kvm # KVM obrigatório para performance
|
|
shm_size: "4gb"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- android-tv-data:/android/userdata # persiste dados do Android
|
|
|
|
volumes:
|
|
android-tv-data: |