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