From ce9017bae124d7621a433df948d0ffffa0afe654 Mon Sep 17 00:00:00 2001 From: Ing Date: Sun, 30 Nov 2025 00:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Docker=20Compose=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=20RR=20=E5=AE=B9=E5=99=A8=E5=8C=96=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index 83887839..a2c92f12 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,44 @@ If you cannot connect to the Internet, please build a pre-compiled bootloader th --img Local image path, use local image if set ``` +- Docker Compose: + ```yml + # 请从最新版本中下载 rr.img 文件。 + # 并将 替换为你的 rr.img 文件的实际路径. + # Please download the rr.img file from the latest release. + # And replace with the actual path to your rr.img file. + + version: "3.9" + services: + rr: + image: qemux/qemu:latest + container_name: rr + environment: + BOOT: "" + RAM_SIZE: "4G" # >= 4G recommended for DSM + CPU_CORES: "2" + DISK_TYPE: "sata" + DISK_SIZE: "32G" # data disk size + ARGUMENTS: "-device nec-usb-xhci,id=usb0,multifunction=on -drive file=/rr.img,media=disk,format=raw,if=none,id=udisk1 -device usb-storage,bus=usb0.0,port=1,drive=udisk1,bootindex=999,removable=on" + devices: + - /dev/kvm + - /dev/net/tun + cap_add: + - NET_ADMIN + ports: + - 5000:5000 # For DSM management + - 5001:5001 # For DSM management + - 7681:7681 # For RR management + - 7304:7304 # For RR management + - 7080:7080 # For RR management + - 8006:8006 # For QEMU management + volumes: + - ./rr.img:/rr.img # :/rr.img + - ./data:/storage + restart: always + stop_grace_period: 2m + + ``` ### 4: GPU: