feat: add ci and docker file

This commit is contained in:
dnslin
2025-12-15 15:51:05 +08:00
parent 8af03f9c84
commit 7df7c35c24
4 changed files with 168 additions and 0 deletions

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
services:
aria2bot:
build: .
image: dnslin/aria2bot:latest
container_name: aria2bot
restart: unless-stopped
volumes:
# 下载目录
- ./downloads:/root/downloads
# aria2 配置目录(包含配置文件、会话、云存储令牌)
- ./config:/root/.config/aria2
env_file:
- .env
# 可选:暴露 aria2 RPC 端口(如需外部访问)
# ports:
# - "6800:6800"