tvhelper-docker/dockerinfo/docker-compose.yml

14 lines
692 B
YAML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8' # 使用docker-compose文件版本3.8
services:
tvhelper:
build: . # 构建Dockerfile所在的当前目录
image: wukongdaily/box:latest # 指定构建完成后的镜像名称和标签
ports:
- "2299:22" # 将容器的22端口映射到宿主机的2299端口以便通过SSH访问
volumes:
- /tmp/upload/tvhelper_data:/tvhelper/shells/data # 根据需要映射数据卷,此处假设您希望持久化的数据位于./data目录
restart: unless-stopped # 除非明确要求停止,否则总是重启容器
environment:
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/android-sdk/platform-tools