Files
agserver.svc/aria2/docker-compose.yml
2025-09-08 21:51:05 +08:00

40 lines
914 B
YAML

# merged.
# for manual deploy, see https://www.cnblogs.com/wqp001/p/14709997.html
services:
aria2:
image: p3terx/aria2-pro
container_name: aria2
# haven't test. I just keep using individual containers.
logging:
driver: json-file
options:
max-size: 1m
volumes:
- $HOME/.config/aria2:/config
# Don't really understand differences between attaching with bind-mounting =.=
# - $HOME/_downloads:/downloads
- type: bind
source: $HOME/_downloads
target: /downloads
restart: 'unless-stopped'
environment:
- PUID=$UID
- PGID=$UID
- UMASK_SET=022
ports:
- 16800:6800
- 16888:6888
- 16888:6888/udp
ariang:
image: p3terx/ariang
container_name: ariang
logging:
driver: json-file
options:
max-size: 1m
restart: 'unless-stopped'
ports:
- 16880:6880