-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (97 loc) · 2.46 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.8"
services:
aria2pro:
container_name: aria2-pro
image: p3terx/aria2-pro:latest
environment:
- PUID=$UID
- PGID=$GID
- UMASK_SET=022
- RPC_SECRET=Anwenzen
- RPC_PORT=16800
- LISTEN_PORT=6888
- DISK_CACHE=64M
- IPV6_MODE=false
- UPDATE_TRACKERS=true
- 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:
- 16800:16800
- 16800:16800/udp
- 6888:6888
- 6888: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.
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:
# container_name: ariang
# image: p3terx/ariang
# command: --port 6880 --ipv6
# network_mode: host
# # network_mode: bridge
# # ports:
# # - 6880:6880
# restart: unless-stopped
# logging:
# driver: json-file
# options:
# max-size: 1m
filebrowser:
container_name: filebrowser
image: filebrowser/filebrowser:latest
environment:
- PUID=$UID
- PGID=$GID
volumes:
- ${PWD}/aria2-config/.filebrowser.json:/.filebrowser.json
- ${PWD}/aria2-downloads:/srv
# network_mode: bridge
# ports:
# - 9870:9870
networks:
web:
ipv4_address: 172.18.0.2
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 1m
depends_on:
- aria2pro
caddy:
container_name: caddy
image: caddy:latest
environment:
- MYPASSWD=${MYEMAIL}
- MYDOMAIN=${MYDOMAIN}
volumes:
- ${PWD}/config/Caddyfile:/etc/caddy/Caddyfile
- ${PWD}/aria2-downloads:/var/website
- ${PWD}/acme:/data/caddy
ports:
- 80:80
- 80:80/udp
- 443:443
- 443:443/udp
networks:
web:
ipv4_address: 172.18.0.3
restart: unless-stopped
depends_on:
- filebrowser
networks:
web:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16