mirror of
https://github.com/dnslin/aria2bot.git
synced 2026-01-11 04:02:20 +08:00
style: 优化下docker-compose
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
services:
|
||||
aria2bot:
|
||||
build: .
|
||||
# 方式一:使用预构建镜像(推荐)
|
||||
image: dnslin/aria2bot:latest
|
||||
# 方式二:本地构建(取消下行注释,注释上行)
|
||||
# build: .
|
||||
container_name: aria2bot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
@@ -14,3 +16,4 @@ services:
|
||||
# 可选:暴露 aria2 RPC 端口(如需外部访问)
|
||||
# ports:
|
||||
# - "6800:6800"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user