恢复代理构建和配置仓库克隆,简化一次性容器部署

This commit is contained in:
2026-11-01 22:41:35 +08:00
parent ccaffa4cf6
commit a531c33e54
8 changed files with 120 additions and 48 deletions
+17 -15
View File
@@ -1,24 +1,26 @@
#version: '3.8'
name: maas
services:
app:
image: lichx/maa-container:v1.0
build:
image: lichx/maa-container:personal
build:
context: .
dockerfile: Dockerfile
args:
proxy: ${PROXY}
git_link: ${GIT_LINK}
git_name: ${GIT_NAME}
user: "1001:1001"
group_add: ["${DOCKER_GID:-996}"]
network_mode: host
init: true
restart: "no"
environment:
- redroid_path=${REDROID_PATH}
- adb_address=${ADB_ADDRESS}
- MAA_CONFIG_DIR=${MAA_CONFIG_DIR}
- MAA_LOG=${MAA_LOG}
http_proxy: ${PROXY}
https_proxy: ${PROXY}
ADB_ADDRESS: ${ADB_ADDRESS}
REDROID_CONTAINER: ${REDROID_CONTAINER:-redroid}
GAMES: ${GAMES:-arknights}
MAA_LOG: info
volumes:
- ~/.config/redroid-rk3588:/app/redroid-rk3588
- ~/redroid-data:/home/ubuntu/redroid-data
- /var/run/docker.sock:/var/run/docker.sock
- ~/.config/redroid-log:/app/redroid-log
# network_mode: host
- ../state:/state
- ../state/home:/home/app
- ../state/tmp:/tmp