Files
agserver.svc/aria2/docker-compose.yml
2025-09-07 10:42:52 +08:00

43 lines
1.0 KiB
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'
# Optional - alternative address used for autodiscovery
# hidden.
environment:
- PUID=$UID
- PGID=$UID
- UMASK_SET=022
ports:
- 16800:6800
- 16888:6888
- 16888:6888/udp
ariang:
image: p3terx/ariang
container_name: ariang
# haven't test. I just keep using individual containers.
logging:
driver: json-file
options:
max-size: 1m
restart: 'unless-stopped'
ports:
- 16880:6880