Skip to content

Commit

Permalink
update compose
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-yao committed Jan 4, 2024
1 parent 8172f55 commit 8b13ce5
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version: "3.8"

services:

Aria2-Pro:
container_name: aria2-pro
image: p3terx/aria2-pro
image: abneryaoo/aria2-oneupload:latest
environment:
- PUID=65534
- PGID=65534
Expand All @@ -18,32 +17,27 @@ services:
- CUSTOM_TRACKER_URL=
- TZ=Asia/Shanghai
volumes:
- ${PWD}/aria2-config:/config
- ${PWD}/aria2-downloads:/downloads
# If you use host network mode, then no port mapping is required.
# This is the easiest way to use IPv6 networks.
network_mode: host
# network_mode: bridge
# ports:
# - 6800:6800
# - 6888:6888
# - 6888:6888/udp
- ./aria2-config:/config
- ./aria2-downloads:/downloads
network_mode: bridge
ports:
- 9710:6800
- 9711:6888
- 9711:6888/udp
restart: unless-stopped
# Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.
# Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.
logging:
driver: json-file
options:
max-size: 1m

# AriaNg is just a static web page, usually you only need to deploy on a single host.
# AriaNg is just a static web page, usually you only need to deploy on a single host.
AriaNg:
container_name: ariang
image: p3terx/ariang
command: --port 6880 --ipv6
network_mode: host
# network_mode: bridge
# ports:
# - 6880:6880
network_mode: bridge
ports:
- 9712:6880
restart: unless-stopped
logging:
driver: json-file
Expand Down

0 comments on commit 8b13ce5

Please sign in to comment.