forked from halushko/kino-cat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (91 loc) · 2.28 KB
/
docker-compose.yml
File metadata and controls
96 lines (91 loc) · 2.28 KB
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
version: '3.7'
x-common-variables: &common-variables
RABBITMQ_DEFAULT_USER: rabbit_user
RABBITMQ_DEFAULT_PASS: rabbit_pswrd
RABBIT_PORT: 5672
RABBIT_HOST_IP: 172.17.0.1
BOT_TOKEN: <input bot token>
BOT_NAME: koTorrentBot
LONG_PAUSE_MILIS: 10000
MEDIUM_PAUSE_MILIS: 5000
SMALL_PAUSE_MILIS: 500
DIR_TORRENT_COMPLETE: /home/media/torrent/complete/
DIR_TORRENT_INCOMPLETE: /home/media/torrent/downloads/
DIR_TORRENT_WATCH: /home/media/torrent/torrent_files/
DIR_MEDIA_SHOW: /home/media/
PING: /ping
PONG: pong
services:
rabbitmq:
image: rabbitmq:3.9.20-management-alpine
hostname: rabbitmq
restart: always
environment: *common-variables
ports:
- 5672:5672
- 15672:15672
bot:
image: halushko/cinema-bot:0.1-pi
environment: *common-variables
restart: always
container_name: "bot"
depends_on:
- rabbitmq
deploy:
resources:
limits:
cpus: '1'
memory: 256Mb
text_handler:
image: halushko/cinema-text:0.1-pi
environment: *common-variables
restart: always
container_name: "text_handler"
depends_on:
- rabbitmq
file_handler:
image: halushko/cinema-file:0.1-pi
environment: *common-variables
restart: always
container_name: "file_handler"
depends_on:
- rabbitmq
volumes:
- ./workdir/mediadata/torrent/torrent_files:/home/torrent_files/
torrent:
image: halushko/cinema-torrent:0.1-pi
environment: *common-variables
restart: always
container_name: "torrent"
depends_on:
- rabbitmq
volumes:
- ./workdir/mediadata/:/home/media/
- ./workdir/torrentdata/torrents:/var/lib/transmission/config/torrents
- ./workdir/torrentdata/resume:/var/lib/transmission/config/resume
ports:
- 9091:9091
- 51413:51413
deploy:
resources:
limits:
cpus: '1'
memory: 1G
minidlna:
container_name: "minidlna"
image: halushko/cinema-media:0.1-pi
restart: always
environment: *common-variables
depends_on:
- rabbitmq
volumes:
- ./workdir/mediadata/torrent/complete:/home/media/
network_mode: host
ports:
- 8200:8200
- 1900:1900/udp
deploy:
resources:
limits:
cpus: '1'
memory: 1G