-
Notifications
You must be signed in to change notification settings - Fork 139
/
docker-compose.yaml
53 lines (44 loc) · 1.17 KB
/
docker-compose.yaml
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
version: "3.8"
services:
aria2-pro:
container_name: aria2-pro
image: p3terx/aria2-pro
environment:
- RPC_SECRET=${RPC_SECRET}
- RPC_PORT=6800
expose:
- "6800"
- "6888"
volumes:
- aria-downloads:/downloads
healthcheck:
test: ["CMD", "nc", "-zv", "http://localhost:6800"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
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
pythonbot:
build:
context: .
dockerfile: Dockerfile
environment:
- BOT_API_KEY=${BOT_API_KEY}
- BOT_LOG_CHAT=${BOT_LOG_CHAT}
- RPC_SECRET=${RPC_SECRET}
- GDRIVE_CONFIG_DIR=/usr/src/app
- RCLONE_DRIVE_SHARED_WITH_ME=true
- DRIVE_FOLDER_NAME=Mirrors
- RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS=${RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS}
volumes:
- aria-downloads:/usr/src/app/downloads
depends_on:
- aria2-pro
restart: unless-stopped
volumes:
aria-downloads: