Files
selfhosting/deluge/docker-compose.deluge.yml
T

59 lines
2.2 KiB
YAML
Raw Normal View History

2020-07-07 19:06:14 +02:00
version: '3'
services:
deluge:
container_name: deluge
image: linuxserver/deluge
restart: unless-stopped
networks:
- srv
environment:
2020-07-07 19:49:29 +02:00
DELUGE_LOGLEVEL: info
2020-07-07 20:45:30 +02:00
TZ: ${TZ}
2020-07-07 19:06:14 +02:00
expose:
- 8112
2020-07-07 20:45:30 +02:00
ports:
2020-07-07 20:48:44 +02:00
- ${DELUGE_TORRENT_PORT}:${DELUGE_TORRENT_PORT}/tcp
- ${DELUGE_TORRENT_PORT}:${DELUGE_TORRENT_PORT}/udp
2020-07-07 19:39:36 +02:00
volumes:
- deluge_config:/config:rw
- deluge_downloads:/downloads:rw
2020-07-07 19:06:14 +02:00
labels:
- traefik.enable=true
- traefik.http.routers.deluge.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_DELUGE}`)
- traefik.http.routers.deluge.entrypoints=websecure
- traefik.http.routers.deluge.tls=true
- traefik.http.services.deluge.loadbalancer.server.port=8112
2020-07-07 20:16:29 +02:00
- traefik.http.routers.deluge.middlewares=delugeHeader,sameOriginHeader,delugeRedir,delugePStrip
2020-07-07 19:06:14 +02:00
- traefik.http.middlewares.delugeHeader.headers.customrequestheaders.X-Deluge-Base=${PATH_DELUGE}/
2020-07-07 19:21:02 +02:00
- traefik.http.middlewares.sameOriginHeader.headers.customrequestheaders.X-Frame-Options=SAMEORIGIN
2020-07-07 19:52:30 +02:00
- traefik.http.middlewares.delugePStrip.stripprefix.prefixes=${PATH_DELUGE}
- traefik.http.middlewares.delugeRedir.redirectregex.regex=^(.*)${PATH_DELUGE}$$
- traefik.http.middlewares.delugeRedir.redirectregex.replacement=$${1}${PATH_DELUGE}/
2020-07-07 19:40:53 +02:00
2020-07-07 20:16:29 +02:00
torrent:
container_name: torrent
2020-07-07 20:31:41 +02:00
image: kianby/nginx-streaming
2020-07-07 20:16:29 +02:00
restart: unless-stopped
networks:
- srv
volumes:
2020-07-07 21:01:31 +02:00
- deluge_downloads:/downloads:ro
2020-07-07 20:16:29 +02:00
expose:
- 80
2020-08-15 13:19:37 +02:00
ports:
- 8000:80
2020-07-07 20:16:29 +02:00
labels:
- traefik.enable=true
- traefik.http.routers.torrent.rule=Host(`${HOST_WWW}.${DOMAIN}`) && PathPrefix(`${PATH_TORRENT}`)
- traefik.http.routers.torrent.entrypoints=websecure
- traefik.http.routers.torrent.tls=true
2020-07-07 20:21:47 +02:00
- traefik.http.services.torrent.loadbalancer.server.port=80
- traefik.http.routers.torrent.middlewares=torrentRedir,torrentPStrip
- traefik.http.middlewares.torrentPStrip.stripprefix.prefixes=${PATH_TORRENT}
- traefik.http.middlewares.torrentRedir.redirectregex.regex=^(.*)${PATH_TORRENT}$$
- traefik.http.middlewares.torrentRedir.redirectregex.replacement=$${1}${PATH_TORRENT}/
2020-07-07 20:16:29 +02:00
2020-07-07 19:40:53 +02:00
volumes:
deluge_config:
deluge_downloads: