= rtorrent+rutorrent en contenedor (OLD2)
== instalacion rtorrent+rutorrent
- crear estructura de directorios:
mkdir -p data/downloads/completo
mkdir -p data/root
mkdir -p data/rutorrent
- copiar ficheros de configuración contenedor en **/root** (sacados del propio contenedor y modificar los ficheros de configuración de nginx):
* añadir:
location /completo {
alias /downloads/completo;
autoindex on;
}
- copiar fichero **config.php** en **data/rutorrent** (para cambiar variable ''$forbidUserSettings = true;'')
- crear enlaces simbólicos:
# los enlaces funcionarán desde dentro del contenedor por el mapeo de volumen
ln -s /etc/letsencrypt/live/k0.vividumcodex.com/cert.pem nginx.crt
ln -s /etc/letsencrypt/live/k0.vividumcodex.com/privkey.pem nginx.pem
- ejecutar:
CERTBOT_PATH="/home/user/workspaces/nginx+certbot"
docker run \
-dt \
--restart unless-stopped \
--name rtorrent-rutorrent \
-p 443:443 \
-p 49160:49160/udp \
-p 49161:49161 \
-v ${PWD}/data/downloads:/downloads \
-v ${PWD}/data/root:/root \
-v ${PWD}/data/rutorrent/config.php:/var/www/rutorrent/conf/config.php \
-v ${CERTBOT_PATH}/data/certbot/conf:/etc/letsencrypt \
-v ${CERTBOT_PATH}/data/certbot/www:/var/www/certbot \
diameter/rtorrent-rutorrent:latest