-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (68 loc) · 2.19 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
version: '2.2'
# with traefik support on /rt/ endpoint
services:
# apache front
web:
extends:
service: common-service
file: common.yml
restart: always
volumes:
- ${LOGS_DIR}:/var/log/rutorrent:rw
- ${RUTORRENT_TEMP_DIR}:/tmp:rw
- ${RUTORRENT_DATA_DIR}:/data:rw
# - ./config/rutorrent/vhost.conf:/etc/apache2/sites-enabled/000-default.conf
# - ${RUTORRENT_SHARE_DIR}:/usr/src/app/share:rw
# - ./config/rutorrent/conf:/usr/src/app/conf:ro
# - ./config/rutorrent/media.php:/usr/src/app/plugins/filemanager-media/conf.php:ro
# local dev mount
- ${RUTORRENT_SRC_DIR}:/var/www/html
# uncomment if traefik is not used
ports:
- "80:80/tcp"
expose:
- 80
networks:
default:
ipv4_address: 172.200.23.2
# - webgateway #traefik network
labels:
- "traefik.enable=true"
- "traefik.docker.network=webrouter_gateway"
- "traefik.http.routers.rutorrent.rule=PathPrefix(`/rt/`)"
- "traefik.http.routers.rutorrent.entrypoints=web,websecure"
- "traefik.http.middlewares.strip-rutorrent-prefix.stripprefix.prefixes=/rt/"
- "traefik.http.middlewares.rutorrentAuth.basicauth.users=admin:$$apr1$$tVlulz88$$ppMBNuyJMWvpcFDZRPuAv1"
- "traefik.http.middlewares.rutorrentAuth.basicauth.removeheader=true"
- "traefik.http.routers.rutorrent.middlewares=strip-rutorrent-prefix@docker,rutorrentAuth@docker"
# jailed rtorrent xml-rpc server
rtorrent:
extends:
service: common-service
file: common.yml
command: gosu runuser sh -c '/bin/rm -rf /data/.session/rtorrent.lock && rtorrent || rtorrent'
restart: always
stdin_open: true
tty: true
networks:
default:
ipv4_address: 172.200.23.3
volumes_from:
- web:rw
volumes:
# - ./config/rtorrent.conf:/var/www/.rtorrent.rc:rw
- ./config/rtorrent.conf:/home/runuser/.rtorrent.rc:rw
expose:
- "5000"
ports:
- "55950-56000:55950-56000/tcp"
- "55950-56000:55950-56000/udp"
networks:
# webgateway:
# external:
# name: webrouter_gateway
default:
ipam:
driver: default
config:
- subnet: 172.200.23.0/24